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

Method countInner

packages/db-ivm/src/operators/count.ts:16–22  ·  view source on GitHub ↗
(vals: Array<[V, number]>)

Source from the content-addressed store, hash-verified

14 output: DifferenceStreamWriter<[K, number]>,
15 ) {
16 const countInner = (vals: Array<[V, number]>): Array<[number, number]> => {
17 let totalCount = 0
18 for (const [_, diff] of vals) {
19 totalCount += diff
20 }
21 return [[totalCount, 1]]
22 }
23
24 super(id, inputA, output, countInner)
25 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected