Download node_modules/d3-array/src/some.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 263 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-array/src/some.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-array/src/some.js
-
curl -L -o some.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-array/src/some.js
263 Bytes
| export default function some(values, test) { | |
| if (typeof test !== "function") throw new TypeError("test is not a function"); | |
| let index = -1; | |
| for (const value of values) { | |
| if (test(value, ++index, values)) { | |
| return true; | |
| } | |
| } | |
| return false; | |
| } | |