Function removeSlice

  • Returns copy of list without Slice. A negative index can be used, indicating an offset from the end of the sequence. removeSlice([...], { start: -2 }) removes the last two elements in the sequence.

    Type Parameters

    • T

    Parameters

    • list: readonly T[]
    • __namedParameters: Slice

    Returns readonly T[]

Generated using TypeDoc