iter-fns - v0.13.0
    Preparing search index...

    Function findIndex

    • Finds the first index of an item in an iterable that matches the predicate, otherwise return -1.

      Type Parameters

      • T

        type of the item

      Parameters

      • iterable: Iterable<T>

        the iterable

      • p: (x: T, i: number) => boolean

        the predicate

      Returns number