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