CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
_arrayEach.js23 linesDownload Raw Back to lodash-es
1/**2 * A specialized version of `_.forEach` 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 arrayEach(array, iteratee) {11  var index = -1,12      length = array == null ? 0 : array.length;13 14  while (++index < length) {15    if (iteratee(array[index], index, array) === false) {16      break;17    }18  }19  return array;20}21 22export default arrayEach;23 
basant307/AI_Governance_Project · CoolFace