Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!

Idiom #311 Deep copy an object

Create the new object y by cloning the all the contents of x, recursively.

let y = structuredClone(x);

New implementation...
< >
programming-idioms.org