53
rated 0 times
[
58]
[
5]
/ answers: 1 / hits: 27098
/ 8 Years ago, fri, august 5, 2016, 12:00:00
In javascript, is is possible to add duplicate keys in object literal? If it is, then how could one achieve it after the object has been first created.
For example:
exampleObject['key1'] = something;
exampleObject['key1'] = something else;
How can I add the second key1 without overwriting the first key1?
More From » javascript