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.

MDN Reference