• Gets all but the last element of array.

    Type Parameters

    • T

    Parameters

    • array: undefined | null | List<T>

      The array to query.

    Returns T[]

    Returns the slice of array.