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

Method push

stacks/queue-via-stacks.js:49–51  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

47 return this.size() === 0;
48 }
49 push(value) {
50 this.data.push(value);
51 }
52 pop() {
53 return this.data.pop();
54 }

Callers 2

pushMethod · 0.45
#shiftStacksMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected