MCPcopy Create free account
hub / github.com/microsoft/SandDance / push

Function push

docs/external/js/react.development.js:2243–2247  ·  view source on GitHub ↗
(heap, node)

Source from the content-addressed store, hash-verified

2241 }
2242
2243 function push(heap, node) {
2244 var index = heap.length;
2245 heap.push(node);
2246 siftUp(heap, node, index);
2247 }
2248 function peek(heap) {
2249 var first = heap[0];
2250 return first === undefined ? null : first;

Callers 2

advanceTimersFunction · 0.70

Calls 1

siftUpFunction · 0.85

Tested by

no test coverage detected