MCPcopy Create free account
hub / github.com/TanStack/db / clear

Method clear

packages/db/src/SortedMap.ts:149–152  ·  view source on GitHub ↗

* Removes all key-value pairs from the map

()

Source from the content-addressed store, hash-verified

147 * Removes all key-value pairs from the map
148 */
149 clear(): void {
150 this.map.clear()
151 this.sortedKeys = []
152 }
153
154 /**
155 * Gets the number of key-value pairs in the map

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected