Function: clone()
function clone<T>(node, options?): T;
Clones an object by doing a fromSnapshot(getSnapshot(value), { generateNewIds: true }).
Type Parameters
| Type Parameter | Description |
|---|---|
T extends object | Object type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
node | T | Object to clone. |
options? | Partial<CloneOptions> | Options. |
Returns
T
The cloned object.