MCPcopy Create free account
hub / github.com/careercup/CtCI-6th-Edition-JavaScript / isEmpty

Method isEmpty

chapter04/util/Stack.js:21–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 }
20
21 isEmpty() {
22 return this.size() == 0;
23 }
24
25 push(value) {
26 this._data.push(value);

Callers 3

peekMethod · 0.95
randomNode.jsFile · 0.45
BST.jsFile · 0.45

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected