From 99c1d9af689e5325f3cf535c4007b3aeb8325229 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 10 Jan 2023 14:54:04 +0100 Subject: Update - This is an automated commit --- alarm/node_modules/@arr/every/index.js | 11 -------- alarm/node_modules/@arr/every/module.d.ts | 1 - alarm/node_modules/@arr/every/module.js | 11 -------- alarm/node_modules/@arr/every/package.json | 30 -------------------- alarm/node_modules/@arr/every/readme.md | 45 ------------------------------ 5 files changed, 98 deletions(-) delete mode 100644 alarm/node_modules/@arr/every/index.js delete mode 100644 alarm/node_modules/@arr/every/module.d.ts delete mode 100644 alarm/node_modules/@arr/every/module.js delete mode 100644 alarm/node_modules/@arr/every/package.json delete mode 100644 alarm/node_modules/@arr/every/readme.md (limited to 'alarm/node_modules/@arr') diff --git a/alarm/node_modules/@arr/every/index.js b/alarm/node_modules/@arr/every/index.js deleted file mode 100644 index 170cc49..0000000 --- a/alarm/node_modules/@arr/every/index.js +++ /dev/null @@ -1,11 +0,0 @@ -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; -} diff --git a/alarm/node_modules/@arr/every/module.d.ts b/alarm/node_modules/@arr/every/module.d.ts deleted file mode 100644 index f2935dc..0000000 --- a/alarm/node_modules/@arr/every/module.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function(arr: T[], callback: (val: T, idx: number, arr: T[]) => unknown): boolean; diff --git a/alarm/node_modules/@arr/every/module.js b/alarm/node_modules/@arr/every/module.js deleted file mode 100644 index 18a4208..0000000 --- a/alarm/node_modules/@arr/every/module.js +++ /dev/null @@ -1,11 +0,0 @@ -export default function (arr, cb) { - var i=0, len=arr.length; - - for (; i < len; i++) { - if (!cb(arr[i], i, arr)) { - return false; - } - } - - return true; -} diff --git a/alarm/node_modules/@arr/every/package.json b/alarm/node_modules/@arr/every/package.json deleted file mode 100644 index b82e2cc..0000000 --- a/alarm/node_modules/@arr/every/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@arr/every", - "version": "1.0.1", - "repository": "lukeed/arr", - "description": "A tiny, faster alternative to native Array.prototype.every", - "types": "module.d.ts", - "module": "module.js", - "main": "index.js", - "license": "MIT", - "author": { - "name": "Luke Edwards", - "email": "luke.edwards05@gmail.com", - "url": "https://lukeed.com" - }, - "engines": { - "node": ">=4" - }, - "keywords": [ - "arr", - "array", - "Array.every", - "Array.prototype.every", - "performance", - "native", - "every" - ], - "publishConfig": { - "access": "public" - } -} diff --git a/alarm/node_modules/@arr/every/readme.md b/alarm/node_modules/@arr/every/readme.md deleted file mode 100644 index 31cad87..0000000 --- a/alarm/node_modules/@arr/every/readme.md +++ /dev/null @@ -1,45 +0,0 @@ -# @arr/every - -> A tiny, faster alternative to native `Array.prototype.every` - -:warning: Unlike native, `@arr/every` does _not_ support the optional `thisArg` parameter! - -## Install - -``` -$ npm install --save @arr/every -``` - -## Usage - -```js -import every from '@arr/every'; - -const isBigEnough = val => val >= 10; - -every([12, 5, 8, 130, 44], isBigEnough); -//=> false -every([12, 54, 18, 130, 44], isBigEnough); -//=> true -``` - -## API - -### every(arr, callback) - -#### arr -Type: `Array`
-The array to iterate upon. - -#### callback(value[, index, array]) -Type: `Function`
-Function to test for each element, taking three arguments: - -* **value** (required) -- The current element being processed in the array. -* **index** (optional) -- The index of the current element being processed in the array. -* **array** (optional) -- The array `every` was called upon. - - -## License - -MIT © [Luke Edwards](http://lukeed.com) -- cgit