derefbeginnerconst ref = new WeakRef({ id: 1 })
ref.deref() !== undefined // β true (still alive)If deref() returns a value, the object is still alive at that moment.
typeof WeakRef.prototype.deref is 'function'.
Challenge: Verify that deref is on the prototype.