Aberdeen - v1.0.4
    Preparing search index...

    Function clone

    • Clone an (optionally proxied) object or array.

      Type Parameters

      • T extends object

        The type of the objects being copied.

      Parameters

      • src: T

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

      • flags: number = 0

        SHALLOW: Performs a shallow clone, meaning that only the top-level array or object will be copied, while object/array values will just be references to the original data in src.

      Returns T

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