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

Function scan

src/scan.js:3–6  ·  view source on GitHub ↗
(values, compare)

Source from the content-addressed store, hash-verified

1import leastIndex from "./leastIndex.js";
2
3export default function scan(values, compare) {
4 const index = leastIndex(values, compare);
5 return index < 0 ? undefined : index;
6}

Callers 1

scan-test.jsFile · 0.90

Calls 1

leastIndexFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…