has
const ws = new WeakSet() const o = {} ws.add(o) ws.delete(o) ws.has(o) // β false
has() returns false after the object has been deleted.
After delete(obj), has(obj) returns false.
delete(obj)
has(obj)
false
Challenge: Verify has() after deletion.