source: node_modules/victory-vendor/lib-vendor/d3-array/src/every.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 354 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = every;
7function every(values, test) {
8 if (typeof test !== "function") throw new TypeError("test is not a function");
9 let index = -1;
10 for (const value of values) {
11 if (!test(value, ++index, values)) {
12 return false;
13 }
14 }
15 return true;
16}
Note: See TracBrowser for help on using the repository browser.