MCPcopy Create free account
hub / github.com/d3/d3-array / compareIndex

Function compareIndex

src/rank.js:9–9  ·  view source on GitHub ↗
(i, j)

Source from the content-addressed store, hash-verified

7 const R = new Float64Array(V.length);
8 if (valueof.length !== 2) V = V.map(valueof), valueof = ascending;
9 const compareIndex = (i, j) => valueof(V[i], V[j]);
10 let k, r;
11 values = Uint32Array.from(V, (_, i) => i);
12 // Risky chaining due to Safari 14 https://github.com/d3/d3-array/issues/123

Callers 1

rankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…