When I have this:
hash = { 1_1: 'foo' }
why hash[1_1]
gives undefined
, while for ex.:
hash = { 1: 'foo' }
hash[1]
returns correct value.
Both objects keys are strings:
typeof Object.keys(hash)[0] /// -> string
so why it doesnt convert hash[1_1]
to string?
p.s. I tested on Chrome and looks like it already supports numeric separators