• Returns the last element of an iterable sequence that satisfies the condition in the predicate if given otherwise the last item in the sequence, or a default value if no such element exists.

    Type Parameters

    • T

      The type of elements in the source sequence.

    Parameters

    • source: Iterable<T>

      The source iterable sequence.

    • Optional options: OptionalFindOptions<T>

      The options which include an optional predicate for filtering, thirArg for binding, and abort signal for cancellation

    Returns T | undefined

    The last value that matches the optional predicate or last item, otherwise undefined.

Generated using TypeDoc