• Creates a slice of array from start up to, but not including, end.

    Type Parameters

    • T

    Parameters

    • array: undefined | null | List<T>

      The array to slice.

    • Optionalstart: number

      The start position.

    • Optionalend: number

      The end position.

    Returns T[]

    Returns the slice of array.