4 ms·
I don't know - I think that proves what I said - map keys can be floats.
by chrisseaton 4y ago
I don't know - I think that proves what I said - map keys can be floats.
- matt_kantor 4y agoFor 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).