MCPcopy Index your code
hub / github.com/TanStack/db / [Symbol.iterator]

Method [Symbol.iterator]

packages/db/src/SortedMap.ts:166–170  ·  view source on GitHub ↗

* Default iterator that returns entries in sorted order * * @returns An iterator for the map's entries

()

Source from the content-addressed store, hash-verified

164 * @returns An iterator for the map's entries
165 */
166 *[Symbol.iterator](): IterableIterator<[TKey, TValue]> {
167 for (const key of this.sortedKeys) {
168 yield [key, this.map.get(key)!] as [TKey, TValue]
169 }
170 }
171
172 /**
173 * Returns an iterator for the map's entries in sorted order

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected