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

Function isSingleValue

packages/db-ivm/src/indexes.ts:501–505  ·  view source on GitHub ↗

* This function checks if a value is a single value. * @param value - The value to check. * @returns True if the value is a single value, false otherwise.

(
  value: SingleValue<TValue> | unknown,
)

Source from the content-addressed store, hash-verified

499 * @returns True if the value is a single value, false otherwise.
500 */
501function isSingleValue<TValue>(
502 value: SingleValue<TValue> | unknown,
503): value is SingleValue<TValue> {
504 return Array.isArray(value)
505}

Callers 3

addValueMethod · 0.85
getIteratorMethod · 0.85
addValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected