replaceItem

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

MDN Reference