Join Slack
Powered by
Is there a reason why Map and Set don't map to the...
# javascript
b
basher
11/19/2019, 4:07 AM
Is there a reason why Map and Set don't map to their JS equivalents (
https://kotlinlang.org/docs/reference/js-to-kotlin-interop.html
)?
s
Svyatoslav Kuzmich [JB]
11/19/2019, 4:10 AM
There is. JS Map and Set use
===
for key equality while Kotlin uses
.equals()
and
.hashCode()
👍 1
b
basher
11/19/2019, 4:16 AM
Thanks!
2
Views
Open in Slack
Previous
Next