/** * 返回给定数组中第一个通过`predicate`真值检测的索引,如果没有元素通过检测则返回`-1` * * @example * findIndex([4, 6, 7, 12], (item) => item === 7) * => 1 * * findIndex([4, 6, 8, 12], (item) => item === 1) * => -1 * * * @param array 给定数组 * @param predicate 谓语迭代器函数,通过 iteratee 进行转换,以简化速记语法 * @param context 上下文对象,若传递,则作为谓语迭代器函数的执行上下文 this */ export declare const findIndex: >(array: V, predicate?: import("..").Iteratee, context?: unknown) => number;