1// One can create a unique map. When there are two same keys, they can be stored as:
2
3const map = {
4 "Truck": [{ "Red": true }],
5 "Compact Sedan": [{ "Black": false }, { "Blue": false }]
6}
7
8map["Compact Sedan"][0]; // { "Black": false }
9map["Compact Sedan"][1]; // { "Blue": false }
10
1var obj = {
2 key1: []
3};
4
5obj.key1.push("something"); // useing the key directly
6obj['key1'].push("something else"); // using the key reference
7
8console.log(obj);
9
10// ======= OR ===========
11
12