A resourceful newsletter featuring the latest and most important news, articles, books and updates in the world of #javascript ๐ Don't miss our Quizzes!
Let's chat: @nairihar
Post #1590
6.41K
Sponsored by Bryntum ๐ฎโโ๏ธ
World Class Web Components
โ CHALLENGE
World Class Web Components
โ CHALLENGE
const weakMap = new WeakMap();
const obj = {};
(function() {
const internalObj = {};
weakMap.set(internalObj, 'hidden');
obj.ref = internalObj;
})();
delete obj.ref;
const result = weakMap.has(obj.ref);
console.log(result);
- ๐ฅ 7
- ๐ค 6
- ๐ 5
- โค 3






