Download node_modules/d3-array/src/every.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 265 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-array/src/every.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-array/src/every.js
-
curl -L -o every.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-array/src/every.js
265 Bytes
| export default function every(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 false; | |
| } | |
| } | |
| return true; | |
| } | |