structured clone algorithm

The standard JavaScript algorithm for deep-copying values between threads and into storage, which handles Maps, Sets, Dates, typed arrays and circular references.

In more detail

It is richer than JSON but cannot copy functions or DOM nodes. The global structuredClone() function exposes it for making deep copies in your own code. Copying large objects takes time and memory on both sides, so large binary data is better transferred than copied.

Related terms

Taught in

References