Skip to main

findWithIndex

findWithIndex

Source Location: packages/core/src/source.ts#L1652

Signature

function findWithIndex<T, S extends T>(
predicate: (value: T, index: number) => value is S,
): Operator<
T,
{
value: S
index: number
}
>
function findWithIndex<T>(
predicate: (value: T, index: number) => unknown,
): Operator<
T,
{
value: T
index: number
}
>