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

Method constructor

packages/db-ivm/src/operators/topKArray.ts:81–89  ·  view source on GitHub ↗
(
    offset: number,
    limit: number,
    comparator: (a: V, b: V) => number,
  )

Source from the content-addressed store, hash-verified

79 #topKEnd: number
80
81 constructor(
82 offset: number,
83 limit: number,
84 comparator: (a: V, b: V) => number,
85 ) {
86 this.#topKStart = offset
87 this.#topKEnd = offset + limit
88 this.#comparator = comparator
89 }
90
91 get size(): number {
92 const offset = this.#topKStart

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected