• Extracts the first element of the given iterable, if any.

    Type Parameters

    • T

      Iterated elements type.

    Parameters

    • iterable: Iterable<T>

      An iterable to extract element from.

    Returns T | undefined

    Either the first element, or undefined if the given iterable is empty.

Generated using TypeDoc