CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_arrayEachRight.js22 linesDownload Raw Back to lodash
1/**2 * A specialized version of `_.forEachRight` for arrays without support for3 * iteratee shorthands.4 *5 * @private6 * @param {Array} [array] The array to iterate over.7 * @param {Function} iteratee The function invoked per iteration.8 * @returns {Array} Returns `array`.9 */10function arrayEachRight(array, iteratee) {11  var length = array == null ? 0 : array.length;12 13  while (length--) {14    if (iteratee(array[length], length, array) === false) {15      break;16    }17  }18  return array;19}20 21module.exports = arrayEachRight;22 
basant307/AI_Governance_Project · CoolFace