Fixing typescript

This commit is contained in:
Drew Heavner committed 2019-11-08 09:40:34 -05:00
1 parent 413298b06f
commit 3b9b1768ea
7365 files changed
+1663644 -16

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
/**
* A specialized version of `_.indexOf` 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 strictIndexOf(array, value, fromIndex) {
var index = fromIndex - 1,
length = array.length;
while (++index < length) {
if (array[index] === value) {
return index;
}
}
return -1;
}
module.exports = strictIndexOf;