thana
06/19/2019, 11:07 AMsomeList.toTypedArray()
somewhere and in the debugger i can see it uses an Array
-implementation instead of a js-native array...anton.bannykh
06/19/2019, 11:13 AMtoTypedArray
returns Array<T>
, which is admittedly confusing: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/to-typed-array.htmlanton.bannykh
06/19/2019, 11:14 AMthana
06/19/2019, 11:33 AMArray<Int>
will be translated to a native js array while an Array<T>
wont?anton.bannykh
06/19/2019, 11:35 AMArray<Int>
is translated to JS Array
, whereas IntArray
is translated to Int32Array
thana
06/19/2019, 12:14 PManton.bannykh
06/19/2019, 2:35 PM