Is there a multiplatform identity hashmap? Or any ...
# multiplatform
m
Is there a multiplatform identity hashmap? Or any way to get an internal unique ID for an object in JS? On JVM there is
System.identityHashCode(…)
and on native there is
Any?.identityHashCode()
.
🤔
s
The link https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native/identity-hash-code.html shows me it’s available for common (and jvm, js and native)
m
The design is very misleading. There’s an extra blue dot at the function itself:
m
Thanks Is the
defineProperty
really needed? 🤔
a
Maybe not, I derived this code from SF))
m
👌 😄