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