replaceItem

fun replaceItem(newItem: SVGNumber, index: Int): SVGNumber(source)

The replaceItem() method of the SVGNumberList interface replaces an existing item in the list with a new item.

MDN Reference