CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_arrayMap.js22 linesDownload Raw Back to lodash-es
1/**2 * A specialized version of `_.map` for arrays without support for iteratee3 * 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 the new mapped array.9 */10function arrayMap(array, iteratee) {11  var index = -1,12      length = array == null ? 0 : array.length,13      result = Array(length);14 15  while (++index < length) {16    result[index] = iteratee(array[index], index, array);17  }18  return result;19}20 21export default arrayMap;22 
basant307/AI_Governance_Project · CoolFace