MCPcopy Create free account
hub / github.com/betomoedano/JavaScript-Coding-Interview-Questions / pop

Method pop

stacks/queue-via-stacks.js:52–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 this.data.push(value);
51 }
52 pop() {
53 return this.data.pop();
54 }
55 peek() {
56 if (this.isEmpty()) return null;
57 return this.data[this.size() - 1];

Callers 2

#shiftStacksMethod · 0.45
popMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected