Almost two years of Kotlin programming with Kotlin...
# javascript
r
Almost two years of Kotlin programming with Kotlin/JS and I have no idea how to add new element to the JS array 😉 Any other idea than
array.asDynamic().push(element)
?
n
Have you looked at adding a extension function to
Array
which overrides the
unaryPlus
operator ( https://kotlinlang.org/docs/reference/operator-overloading.html#unary-operations )?