diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/array-each/index.js | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/array-each/index.js')
-rw-r--r-- | node_modules/array-each/index.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/node_modules/array-each/index.js b/node_modules/array-each/index.js deleted file mode 100644 index 12afef4d3..000000000 --- a/node_modules/array-each/index.js +++ /dev/null @@ -1,46 +0,0 @@ -/*! - * array-each <https://github.com/jonschlinkert/array-each> - * - * Copyright (c) 2015, 2017, Jon Schlinkert. - * Released under the MIT License. - */ - -'use strict'; - -/** - * Loop over each item in an array and call the given function on every element. - * - * ```js - * each(['a', 'b', 'c'], function(ele) { - * return ele + ele; - * }); - * //=> ['aa', 'bb', 'cc'] - * - * each(['a', 'b', 'c'], function(ele, i) { - * return i + ele; - * }); - * //=> ['0a', '1b', '2c'] - * ``` - * - * @name each - * @alias forEach - * @param {Array} `array` - * @param {Function} `fn` - * @param {Object} `thisArg` (optional) pass a `thisArg` to be used as the context in which to call the function. - * @return {undefined} - * @api public - */ - -module.exports = function each(arr, cb, thisArg) { - if (arr == null) return; - - var len = arr.length; - var idx = -1; - - while (++idx < len) { - var ele = arr[idx]; - if (cb.call(thisArg, ele, idx, arr) === false) { - break; - } - } -}; |