CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_arrayEvery.js24 linesDownload Raw Back to lodash
1/**2 * A specialized version of `_.every` for arrays without support for3 * iteratee shorthands.4 *5 * @private6 * @param {Array} [array] The array to iterate over.7 * @param {Function} predicate The function invoked per iteration.8 * @returns {boolean} Returns `true` if all elements pass the predicate check,9 *  else `false`.10 */11function arrayEvery(array, predicate) {12  var index = -1,13      length = array == null ? 0 : array.length;14 15  while (++index < length) {16    if (!predicate(array[index], index, array)) {17      return false;18    }19  }20  return true;21}22 23module.exports = arrayEvery;24 
basant307/AI_Governance_Project · CoolFace