MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / cleanupNode

Method cleanupNode

src/gridstack-engine.ts:1250–1255  ·  view source on GitHub ↗

called to remove all internal values but the _id

(node: GridStackNode)

Source from the content-addressed store, hash-verified

1248
1249 /** called to remove all internal values but the _id */
1250 public cleanupNode(node: GridStackNode): GridStackEngine {
1251 for (const prop in node) {
1252 if (prop[0] === '_' && prop !== '_id') delete node[prop];
1253 }
1254 return this;
1255 }
1256}

Callers 3

willItFitMethod · 0.95
_setupAcceptWidgetMethod · 0.80
_leaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected