Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/_arrayEach.js')
-rw-r--r--tools/eslint/node_modules/lodash/_arrayEach.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eslint/node_modules/lodash/_arrayEach.js b/tools/eslint/node_modules/lodash/_arrayEach.js
index c302e631312..5f770bcbe6e 100644
--- a/tools/eslint/node_modules/lodash/_arrayEach.js
+++ b/tools/eslint/node_modules/lodash/_arrayEach.js
@@ -3,13 +3,13 @@
* iteratee shorthands.
*
* @private
- * @param {Array} array The array to iterate over.
+ * @param {Array} [array] The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns `array`.
*/
function arrayEach(array, iteratee) {
var index = -1,
- length = array.length;
+ length = array ? array.length : 0;
while (++index < length) {
if (iteratee(array[index], index, array) === false) {