MCPcopy Create free account
hub / github.com/breck7/scroll / every

Function every

external/.d3.js:1241–1250  ·  view source on GitHub ↗
(values, test)

Source from the content-addressed store, hash-verified

1239}
1240
1241function every(values, test) {
1242 if (typeof test !== "function") throw new TypeError("test is not a function");
1243 let index = -1;
1244 for (const value of values) {
1245 if (!test(value, ++index, values)) {
1246 return false;
1247 }
1248 }
1249 return true;
1250}
1251
1252function some(values, test) {
1253 if (typeof test !== "function") throw new TypeError("test is not a function");

Callers 1

_getBestAtomTypeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected