MCPcopy
hub / github.com/mongodb/node-mongodb-native / clear

Method clear

src/utils.ts:772–776  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

770 }
771
772 clear() {
773 this.count = 0;
774 this.head.next = this.head as EmptyNode;
775 this.head.prev = this.head as EmptyNode;
776 }
777
778 /** Returns the first item in the list, does not remove */
779 first(): T | null {

Callers 7

testListPushFunction · 0.95
hasNextMethod · 0.45
nextMethod · 0.45
tryNextMethod · 0.45
closeMethod · 0.45
_closeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected