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

Method isEmpty

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

Source from the content-addressed store, hash-verified

39
40 // 检查队列是否为空
41 isEmpty(): boolean {
42 return this.items.length === 0;
43 }
44
45 get length(): number {
46 return this.items.length;

Callers 6

dequeueMethod · 0.95
peekMethod · 0.95
tailMethod · 0.95
Stack.test.tsFile · 0.45
Queue.test.tsFile · 0.45
MonoStack.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected