insertItemBefore

fun insertItemBefore(newItem: String, index: Int): String(source)

The insertItemBefore() method of the SVGStringList interface inserts a new item into the list at the specified position. The first item is indexed 0. The inserted item is the item itself and not a copy.

MDN Reference