• Returns the first element in an Iterable, or undefined if there are no elements.

    Type Parameters

    • T

    Parameters

    • iterable: Iterable<T, any, any>

      The iterator.

    Returns T | undefined