MCPcopy
hub / github.com/lodash/lodash / strictLastIndexOf

Function strictLastIndexOf

lodash.js:1321–1329  ·  view source on GitHub ↗

* A specialized version of `_.lastIndexOf` which performs strict equality * comparisons of values, i.e. `===`. * * @private * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @returns {

(array, value, fromIndex)

Source from the content-addressed store, hash-verified

1319 * @returns {number} Returns the index of the matched value, else `-1`.
1320 */
1321 function strictLastIndexOf(array, value, fromIndex) {
1322 var index = fromIndex + 1;
1323 while (index--) {
1324 if (array[index] === value) {
1325 return index;
1326 }
1327 }
1328 return index;
1329 }
1330
1331 /**
1332 * Gets the number of symbols in `string`.

Callers 1

lastIndexOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected