Loading homepage
Input: deserialize(serialize({ count: BigInt("42"), missing: undefined, at: new Date("2025-01-01T00:00:00Z") })); Output: Restores count as 42n, an own missing property, and at as a Date.
Input: deserialize(serialize([NaN, -0, new Set([1, 2])])); Output: Restores NaN, negative zero, and a Set in the original order.
Implement the exported API in index.js or index.ts. Tests cover the contract and edge cases below.