What goes in the blank?
// deep copy that keeps Dates and Maps intact const copy = ____(state);
Answer: structuredClone
structuredClone deep-copies Dates, Maps, Sets and cycles, which a JSON round-trip loses.
Play Problem Solving ▸
// deep copy that keeps Dates and Maps intact const copy = ____(state);
Answer: structuredClone