CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_countHolders.js22 linesDownload Raw Back to lodash
1/**2 * Gets the number of `placeholder` occurrences in `array`.3 *4 * @private5 * @param {Array} array The array to inspect.6 * @param {*} placeholder The placeholder to search for.7 * @returns {number} Returns the placeholder count.8 */9function countHolders(array, placeholder) {10  var length = array.length,11      result = 0;12 13  while (length--) {14    if (array[length] === placeholder) {15      ++result;16    }17  }18  return result;19}20 21module.exports = countHolders;22 
basant307/AI_Governance_Project · CoolFace