3 ms·
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
by matt_kantor 4y ago
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).