Function splice

  • Remove or replace existing values.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • i: number

      remove ±index

    • n: number = x.length

      number of values to remove [rest]

    • Rest ...vs: T[]

      values to insert

    Returns T[]

    x[0..i] ⧺ vs ⧺ x[i+n..]

Generated using TypeDoc