Join Slack
Powered by
Almost two years of Kotlin programming with Kotlin...
# javascript
r
Robert Jaros
04/21/2019, 9:37 PM
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
napperley
04/21/2019, 11:24 PM
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
)?
3
Views
Open in Slack
Previous
Next