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

    Function findLastIndex

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

      This will always iterate forward through the iterable, even if the iterable is ReverseIterable.

      Type Parameters

      • T

        type of the item

      Parameters

      • iterable: Iterable<T>

        the iterable

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

        the predicate

      Returns number