js duplicate keys in object code example
Example: how to create duplicate key array in javascript
var obj = {
key1: []
};
obj.key1.push("something"); // useing the key directly
obj['key1'].push("something else"); // using the key reference
console.log(obj);
// ======= OR ===========