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

Function getIndex

packages/db-ivm/src/operators/topKArray.ts:20–22  ·  view source on GitHub ↗
(indexedVal: IndexedValue<V>)

Source from the content-addressed store, hash-verified

18}
19
20export function getIndex<V>(indexedVal: IndexedValue<V>): FractionalIndex {
21 return indexedVal[1]
22}
23
24/**
25 * Creates a comparator for [key, value] tuples that first compares values,

Callers 2

insertMethod · 0.85
insertMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected