Duplicate
Duplicates an object - either shallow or deep
Method Signature
Arguments
Argument
Type
Required
Description
Default
object
any
true
Any object to duplicate
deep
boolean
false
Whether to deep copy the object or make a shallow copy (e.g. only the top level keys in a struct)
true
Examples
Related
Last updated