Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't know - I think that proves what I said - map keys can be floats.


For sure, I never disagreed with that (I even said "JavaScript maps absolutely can use numbers (or any type) as keys" in my other comment).

But object property names cannot be floats (which is what your example was, despite them being properties of a Map object).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: