MCPcopy Index your code
hub / github.com/immutable-js/immutable-js / makeStack

Function makeStack

src/Stack.js:214–222  ·  view source on GitHub ↗
(size, head, ownerID, hash)

Source from the content-addressed store, hash-verified

212};
213
214function makeStack(size, head, ownerID, hash) {
215 const map = Object.create(StackPrototype);
216 map.size = size;
217 map._head = head;
218 map.__ownerID = ownerID;
219 map.__hash = hash;
220 map.__altered = false;
221 return map;
222}
223
224let EMPTY_STACK;
225function emptyStack() {

Callers 5

pushMethod · 0.85
pushAllMethod · 0.85
sliceMethod · 0.85
__ensureOwnerMethod · 0.85
emptyStackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected