replaceItem

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

The replaceItem() method of the SVGPointList interface replaces a DOMPoint in the list.

MDN Reference