diff options
Diffstat (limited to 'includes/external/school/node_modules/@arr/every/index.js')
-rw-r--r-- | includes/external/school/node_modules/@arr/every/index.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/external/school/node_modules/@arr/every/index.js b/includes/external/school/node_modules/@arr/every/index.js new file mode 100644 index 0000000..170cc49 --- /dev/null +++ b/includes/external/school/node_modules/@arr/every/index.js @@ -0,0 +1,11 @@ +module.exports = function (arr, cb) { + var i=0, len=arr.length; + + for (; i < len; i++) { + if (!cb(arr[i], i, arr)) { + return false; + } + } + + return true; +} |