Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
10
node_modules/d3-array/src/some.js
generated
vendored
Normal file
10
node_modules/d3-array/src/some.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue