
Stop reaching for JSON.parse(JSON.stringify()) — structuredClone is right there
JSON.parse(JSON.stringify(x)) silently drops Dates, Maps and undefined. structuredClone keeps them, ships everywhere, and costs nothing extra.

JSON.parse(JSON.stringify(x)) silently drops Dates, Maps and undefined. structuredClone keeps them, ships everywhere, and costs nothing extra.