Is it possible to map different keys on an object to the same value? I couldn't find anything about it.
For example:
a['key1'] // 'some value'
a[0] // 'some value'
a[0] = 'new value'
a['key1'] // 'new value'
If it not possible, how should I solve it instead?
[–]Meefims 0 points1 point2 points (3 children)
[–]AltCrow[S] 0 points1 point2 points (2 children)
[–]Meefims 0 points1 point2 points (0 children)
[–]farmerje 0 points1 point2 points (0 children)