3 ms·
No. JavaScript does that all the time.
by vbezhenar 4y ago
No. JavaScript does that all the time.
- easrng 4y agoJavaScript actually converts all non-Symbol keys to strings.
- ithkuil 4y ago(Because JS has no integers)
- yawaramin 4y agoThat used to be the case but JavaScript has BigIntegers now.
- pclmulqdq 4y agoYet another reason not to do it. Still, if your floats are always integers under a certain size, it works fine to use floats as hash table keys.