JAVASCRIPT Telegram 2203
CHALLENGE

let obj1 = { id: 1 };
let obj2 = { id: 2 };
let obj3 = { id: 3 };

const weakSet = new WeakSet([obj1, obj2]);

weakSet.add(obj3);
weakSet.delete(obj1);

obj2 = null;

const remainingObjects = [...weakSet];

console.log(remainingObjects);
👍2🔥1



tgoop.com/javascript/2203
Create:
Last Update:

CHALLENGE

let obj1 = { id: 1 };
let obj2 = { id: 2 };
let obj3 = { id: 3 };

const weakSet = new WeakSet([obj1, obj2]);

weakSet.add(obj3);
weakSet.delete(obj1);

obj2 = null;

const remainingObjects = [...weakSet];

console.log(remainingObjects);

BY JavaScript


Share with your friend now:
tgoop.com/javascript/2203

View MORE
Open in Telegram


Telegram News

Date: |

Informative Healing through screaming therapy Over 33,000 people sent out over 1,000 doxxing messages in the group. Although the administrators tried to delete all of the messages, the posting speed was far too much for them to keep up. A vandalised bank during the 2019 protest. File photo: May James/HKFP. Telegram has announced a number of measures aiming to tackle the spread of disinformation through its platform in Brazil. These features are part of an agreement between the platform and the country's authorities ahead of the elections in October.
from us


Telegram JavaScript
FROM American