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

Method get

src/Stack.js:34–41  ·  view source on GitHub ↗
(index, notSetValue)

Source from the content-addressed store, hash-verified

32 // @pragma Access
33
34 get(index, notSetValue) {
35 let head = this._head;
36 index = wrapIndex(this, index);
37 while (head && index--) {
38 head = head.next;
39 }
40 return head ? head.value : notSetValue;
41 }
42
43 peek() {
44 return this._head && this._head.value;

Callers

nothing calls this directly

Calls 1

wrapIndexFunction · 0.90

Tested by

no test coverage detected