Version 1
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / _arrayEachRight.js
diff --git a/node_modules/grunt-legacy-log-utils/node_modules/lodash/_arrayEachRight.js b/node_modules/grunt-legacy-log-utils/node_modules/lodash/_arrayEachRight.js
new file mode 100644 (file)
index 0000000..5318585
--- /dev/null
@@ -0,0 +1,21 @@
+/**
+ * A specialized version of `_.forEachRight` for arrays without support for
+ * iteratee shorthands.
+ *
+ * @private
+ * @param {Array} array The array to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array} Returns `array`.
+ */
+function arrayEachRight(array, iteratee) {
+  var length = array.length;
+
+  while (length--) {
+    if (iteratee(array[length], length, array) === false) {
+      break;
+    }
+  }
+  return array;
+}
+
+module.exports = arrayEachRight;