Duplicate
Last updated
Last updated
Duplicates an object - either shallow or deep
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