Loading homepage
Input: const m = new MapWithHistory(); m.set("theme", "light", 10).set("theme", "dark", 20); m.get("theme", 15); m.get("theme"); Output: "light" and "dark"
Input: m.set("theme", "contrast", 12); m.get("theme", 15); Output: "contrast"
Implement the exported API in index.js or index.ts. Tests cover the contract and edge cases below.