MCPcopy Create free account
hub / github.com/nodejs/node / shift

Method shift

deps/undici/undici.js:876–884  ·  view source on GitHub ↗

@returns {T|null}

()

Source from the content-addressed store, hash-verified

874 }
875 /** @returns {T|null} */
876 shift() {
877 const tail = this.tail;
878 const next = tail.shift();
879 if (tail.isEmpty() && tail.next !== null) {
880 this.tail = tail.next;
881 tail.next = null;
882 }
883 return next;
884 }
885 };
886 }
887});

Callers

nothing calls this directly

Calls 2

shiftMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected