Deep copy an object
copied object
This function is not suitable for copying objects with function values or symbol-keyed properties (throws DataCloneError). Handles Date, Map, Set, BigInt, circular references, and undefined values correctly.
Date
Map
Set
BigInt
undefined
Deep copy an object