`-0` is coerced to `"0"` when used as a key: var o = { '-0': 'a', '0': 'b' }; o[-0] // 'b'
-
-
-
@stevenlangbroek
@jdalton The key isn’t coerced because it’s already a string. https://mathiasbynens.be/notes/javascript-properties … - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.