• Gets the last element of array.

    Type Parameters

    • T

    Parameters

    • array: undefined | null | List<T>

      The array to query.

    Returns undefined | T

    Returns the last element of array.