MCPcopy Index your code
hub / github.com/betomoedano/JavaScript-Coding-Interview-Questions / empty

Method empty

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

Source from the content-addressed store, hash-verified

32 return this.stackOldest.peek();
33 }
34 empty() {
35 return this.stackNewest.size() + this.stackOldest.size() === 0;
36 }
37}
38
39class Stack {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected