MCPcopy Index your code
hub / github.com/plotly/dash / traverse2

Function traverse2

components/dash-table/src/core/math/matrixZipMap.ts:15–28  ·  view source on GitHub ↗
(
    a1: T1[],
    a2: T2[],
    fn: (d1: T1, d2: T2, i1: number, i2: number) => void
)

Source from the content-addressed store, hash-verified

13}
14
15export function traverse2<T1, T2>(
16 a1: T1[],
17 a2: T2[],
18 fn: (d1: T1, d2: T2, i1: number, i2: number) => void
19) {
20 const _a1_ = a1.length;
21 const _a2_ = a2.length;
22
23 for (let i1 = 0; i1 < _a1_; ++i1) {
24 for (let i2 = 0; i2 < _a2_; ++i2) {
25 fn(a1[i1], a2[i2], i1, i2);
26 }
27 }
28}
29
30export function traverseMap2<T1, T2, TR>(
31 a1: T1[],

Callers 7

operationOfData.tsFile · 0.90
resolveEdgesFunction · 0.90
partialGetterFunction · 0.90
header.tsFile · 0.90
filter.tsFile · 0.90

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…