• Gets the first element of array.

    Type Parameters

    • T

    Parameters

    • array: undefined | null | List<T>

      The array to query.

    Returns undefined | T

    Returns the first element of array.

    _.first