• ES Version of lodash.dropRight Creates a slice of array with n elements dropped from the end.

    Type Parameters

    • T

    Parameters

    • arr: T[]

      The array to query.

    • n: number = 1

      The number of elements to drop.

    Returns T[]

    The slice of array.