MCPcopy Index your code
hub / github.com/TanStack/db / toArray

Method toArray

packages/db/src/collection/index.ts:850–852  ·  view source on GitHub ↗

* Gets the current state of the collection as an Array * * @returns An Array containing all items in the collection

()

Source from the content-addressed store, hash-verified

848 * @returns An Array containing all items in the collection
849 */
850 get toArray() {
851 return Array.from(this.values())
852 }
853
854 /**
855 * Gets the current state of the collection as an Array, but only resolves when data is available

Callers 1

toRowArrayFunction · 0.80

Calls 2

valuesMethod · 0.95
fromMethod · 0.80

Tested by

no test coverage detected