import { ArrPred } from '../typings/types'; interface FindIndex { (fn: ArrPred, list: ArrayLike): number; (fn: ArrPred): (list: ArrayLike) => number; } /** * Returns the index of the first element of the list which matches the * predicate, or `-1` if no element matches. * * @param {Function} fn The predicate function used to determine if the element is the * desired one. * @param {Array} arr The array to consider. * @return {Number} The index of the element found, or `-1`. * @example * * var xs = [{a: 1}, {a: 2}, {a: 3}]; * findIndex(x => x.a === 2)(xs); //=> 1 * findIndex(x => x.a === 4)(xs); //=> -1 */ declare const _default: FindIndex; export default _default;