• Slice a list into a new array.

    Type Parameters

    • T

      The inner type of the array

    Parameters

    • list: T[]

      The initial list

    • lower: number

      The lower bound (inclusive)

    • upper: number

      The upper bound (exclusive)

    Returns T[]

    The sliced array.