• ES Version of lodash.initial Gets all but the last element of array.

    Type Parameters

    • T

    Parameters

    • arr: T[]

      The array to query.

    Returns T[]

    Returns the slice of array.