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

Method get

packages/db-ivm/src/utils.ts:25–31  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

23 }
24
25 get(key: K): V {
26 if (!this.has(key)) {
27 // this.set(key, this.defaultValue())
28 return this.defaultValue()
29 }
30 return super.get(key)!
31 }
32
33 /**
34 * Update the value for a key using a function.

Callers 2

updateMethod · 0.95
getIdMethod · 0.45

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected