Skip to main

findWithIndex

findWithIndex

Signature - source.ts#L1746

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
    }
>