Files
NapCatQQ/.pnpm-store/v3/files/f0/94f29ebaf2fb3f7a0e56d9bc0ee6d5877fa4c650292f90055dc47b1d114a2fa11dfff8c125b7361d043acac0bb0e2135fef2e30d621fd07deec2f63c81cbe3
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

22 lines
574 B
Plaintext

/**
* 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 {number} Returns the index of the matched value, else `-1`.
*/
function strictLastIndexOf(array, value, fromIndex) {
var index = fromIndex + 1;
while (index--) {
if (array[index] === value) {
return index;
}
}
return index;
}
export default strictLastIndexOf;