Repository URL to install this package:
|
Version:
6.0.4 ▾
|
/**
* A specialized version of `indexOf` which performs strict equality
* comparisons of values, i.e. `===`.
*
* @memberOf array
* @since 5.0.0-beta.1
*
* @param {Array} array The array to inspect.
* @param {*} value The value to search for.
* @param {number} fromIndex The index to search from.
* @return {number} Returns the index of the matched value, else `-1`.
*
* @example
*
* indexOf([10], 10) //=> 0
* indexOf([], 10) //=> -1
*
*/
declare function strictIndexOf<ValueType = any, ArrayType = Array<any>>(array: ArrayType & Array<any>, value: ValueType, fromIndex: number): number;
export default strictIndexOf;