var myMap = {};
myMap[newKey] = newValue;
// ...
// Another method
var myMap = new Map();
myMap.set("key0","value");
// ...
myMap.has("key1"); // evaluates to false, assuming key1 wasn't set
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/set
const map = new Map();
map.set("key", "value");
// create a set
let map1 = new Map();
// insert key-value pair
map1.set('info', {name: 'Jack', age: 26});
console.log(map1); // Map {"info" => {name: "Jack", age: 26}}
// Works with Vue Reactive hooks
var myMap = new Map()
myMap.set("key0","value")