Function splice$

  • Remove or replace existing values!

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array (updated!)

    • i: number

      remove ±index

    • n: number = x.length

      number of values to remove [rest]

    • Rest ...vs: T[]

      values to insert

    Returns T[]

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

Generated using TypeDoc