Skip to content

clone

clone<T>(src): T

Defined in: aberdeen.ts:2218

Clone an (optionally proxied) object or array.

T extends object

The type of the objects being copied.

T

The object or array to clone. If it is proxied, clone will subscribe to any changes to the (nested) data structure.

T

A new unproxied array or object (of the same type as src), containing a deep copy of src.