MCPcopy
hub / github.com/graphif/project-graph / dequeue

Method dequeue

packages/data-structures/src/Queue.ts:10–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9 // 出队操作
10 dequeue(): T | undefined {
11 if (this.isEmpty()) {
12 return undefined;
13 }
14 return this.items.shift();
15 }
16
17 public get arrayList(): T[] {
18 return this.items;

Callers 4

enqueueMethod · 0.80
Queue.test.tsFile · 0.80
enqueueFunction · 0.80
tickMethod · 0.80

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected