MCPcopy
hub / github.com/immutable-js/immutable-js / editableVNode

Function editableVNode

src/List.js:551–556  ·  view source on GitHub ↗
(node, ownerID)

Source from the content-addressed store, hash-verified

549}
550
551function editableVNode(node, ownerID) {
552 if (ownerID && node && ownerID === node.ownerID) {
553 return node;
554 }
555 return new VNode(node ? node.array.slice() : [], ownerID);
556}
557
558/**
559 * Returns the leaf `VNode` holding `rawIndex`, or `undefined` when no node is

Callers 4

removeBeforeMethod · 0.85
removeAfterMethod · 0.85
updateVNodeFunction · 0.85
setListBoundsFunction · 0.85

Calls 1

sliceMethod · 0.65

Tested by

no test coverage detected