replaceItem

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

Since Kotlin

1.1
fun replaceItem(newItem: JsAny?, index: Int): JsAny?(source)

Since Kotlin

1.8