let map = new WeakMap();
let key = {};
map.set(key, 'keyVal');
console.log(map)
key = null;
console.log(map)
let map = new WeakMap();
let key = {};
map.set(key, 'keyVal');
console.log(map)
key = null;
setTimeout(function(){
console.log(map)
}, 1000)