getArrayElement

open override fun getArrayElement(index: Int): Any?

The element at index. It has to be a type script understands: a number, a string or a Scriptable. Never called with an out-of-range index.