Not in standard ES5 or predecessor. Of course, you can do something like $.extend([], {"3": "hello"})
in jQuery; you can even do
Object.create(Array.prototype, {"3": {value: "hello"} });
in bare ES5, but it's a hack, I would not consider this decision (if everything is ok with you, you can take it).
user1046334
source share