Loading homepage
Store values by DOM node identity without modifying nodes or keeping them alive solely through registry keys.
Input: const registry = new NodeRegistry(); registry.set(element, { visited: true }); registry.get(element); Output: { visited: true }
Input: registry.set(element, undefined); registry.has(element); Output: true
Implement the exported class in index.js or index.ts. Tests provide fixtures for the required behavior.