MCPcopy Index your code
hub / github.com/TanStack/db / reduceCallback

Function reduceCallback

packages/db/src/proxy.ts:129–138  ·  view source on GitHub ↗
(
        this: unknown,
        accumulator: unknown,
        element: unknown,
        index: number,
        array: unknown,
      )

Source from the content-addressed store, hash-verified

127 // For reduce/reduceRight, the callback signature is different
128 if (methodName === `reduce` || methodName === `reduceRight`) {
129 const reduceCallback = function (
130 this: unknown,
131 accumulator: unknown,
132 element: unknown,
133 index: number,
134 array: unknown,
135 ) {
136 const proxiedElement = getProxiedElement(element, index)
137 return callback.call(this, accumulator, proxiedElement, index, array)
138 }
139 return methodFn.apply(changeTracker.copy_, [
140 reduceCallback,
141 ...args.slice(1),

Callers

nothing calls this directly

Calls 1

getProxiedElementFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…