A javascript library for working with objects
Deep clone a value.
Param | Type | Default | Description |
---|---|---|---|
value | * |
||
[settings] | Object |
||
[settings.ignoreKeys] | Array , String |
Any keys in this array will not be cloned | |
[settings.isCircular] | Boolean |
false |
If true then circular references will be handled |
Example
import { clone } from 'object-agent';
clone({ a: 'b', c: 'd' });
// => { a: 'b', c: 'd' }