Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
leastIndex from
"./leastIndex.js"
;
2
3
export
default
function
scan(values, compare) {
4
const
index = leastIndex(values, compare);
5
return
index < 0 ? undefined : index;
6
}
Callers
1
scan-test.js
File · 0.85
Calls
1
leastIndex
Function · 0.85
Tested by
no test coverage detected