Function first

  • Returns the first element of an iterable sequence that matches the predicate if provided, or undefined if no such element exists.

    Type Parameters

    • T

      The type of the elements in the source sequence.

    Parameters

    • source: Iterable<T>

      Source async-enumerable sequence.

    • Optional options: OptionalFindOptions<T>

    Returns T | undefined

    The first element in the iterable sequence, or undefined if no such element exists.

Generated using TypeDoc