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

Method peek

chapter04/util/Queue.js:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 }
17
18 peek() {
19 return this._list.head ? this._list.head.value : null;
20 }
21
22 isEmpty() {
23 return this._list.head == null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected