summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/lodash._arrayeach/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/lodash._arrayeach/index.js')
-rw-r--r--deps/npm/node_modules/lodash._arrayeach/index.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/deps/npm/node_modules/lodash._arrayeach/index.js b/deps/npm/node_modules/lodash._arrayeach/index.js
new file mode 100644
index 0000000000..7b31bcdb25
--- /dev/null
+++ b/deps/npm/node_modules/lodash._arrayeach/index.js
@@ -0,0 +1,31 @@
+/**
+ * lodash 3.0.0 (Custom Build) <https://lodash.com/>
+ * Build: `lodash modern modularize exports="npm" -o ./`
+ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
+ * Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
+ * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ * Available under MIT license <https://lodash.com/license>
+ */
+
+/**
+ * A specialized version of `_.forEach` for arrays without support for callback
+ * shorthands or `this` binding.
+ *
+ * @private
+ * @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;
+
+ while (++index < length) {
+ if (iteratee(array[index], index, array) === false) {
+ break;
+ }
+ }
+ return array;
+}
+
+module.exports = arrayEach;