Function splice

  • Remove/replace characters in a string.

    Parameters

    • x: string

      a string

    • start: number

      start index

    • remove: number = 0

      number of characters to remove

    • add: string = ""

      substring to add

    Returns string

    x[0:i] + add + x[i+r] | i = start, r = remove

Generated using TypeDoc