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

Function every

src/every.js:1–10  ·  view source on GitHub ↗
(values, test)

Source from the content-addressed store, hash-verified

1export default function every(values, test) {
2 if (typeof test !== "function") throw new TypeError("test is not a function");
3 let index = -1;
4 for (const value of values) {
5 if (!test(value, ++index, values)) {
6 return false;
7 }
8 }
9 return true;
10}

Callers 1

every-test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…