Download node_modules/d3-array/src/scan.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 178 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-array/src/scan.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-array/src/scan.js
-
curl -L -o scan.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-array/src/scan.js
178 Bytes
| import leastIndex from "./leastIndex.js"; | |
| export default function scan(values, compare) { | |
| const index = leastIndex(values, compare); | |
| return index < 0 ? undefined : index; | |
| } | |