clone
clone<
T>(src):T
Defined in: aberdeen.ts:2218
Clone an (optionally proxied) object or array.
Type Parameters
Section titled “Type Parameters”T extends object
The type of the objects being copied.
Parameters
Section titled “Parameters”T
The object or array to clone. If it is proxied, clone will subscribe to any changes to the (nested) data structure.
Returns
Section titled “Returns”T
A new unproxied array or object (of the same type as src), containing a deep copy of src.