replaceItem

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

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

MDN Reference