kotlin-stdlib / kotlin.js.collections / toList toList JS 2.0 fun <E> JsReadonlyArray<E>.toList(): List<E>(source)