CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
_strictLastIndexOf.js22 linesDownload Raw Back to lodash
1/**2 * A specialized version of `_.lastIndexOf` which performs strict equality3 * comparisons of values, i.e. `===`.4 *5 * @private6 * @param {Array} array The array to inspect.7 * @param {*} value The value to search for.8 * @param {number} fromIndex The index to search from.9 * @returns {number} Returns the index of the matched value, else `-1`.10 */11function strictLastIndexOf(array, value, fromIndex) {12  var index = fromIndex + 1;13  while (index--) {14    if (array[index] === value) {15      return index;16    }17  }18  return index;19}20 21module.exports = strictLastIndexOf;22 
basant307/AI_Governance_Project · CoolFace