vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Function deepClone

    • Deep clones an object return copy of primitives and embedded objects. Also sets the prototype of the object so that if the source value is a class the clone will be an instance of the same class.

      This method does not support deep recursive objects where object in the object graph refers to a parent or child.

      Type Parameters

      • T

      Parameters

      • value: T

        object

      Returns T

      Deep copy of an object

    • Deep clones an object return copy of primitives and embedded objects. Also sets the prototype of the object so that if the source value is a class the clone will be an instance of the same class.

      This method does not support deep recursive objects where object in the object graph refers to a parent or child.

      Type Parameters

      • T
      • K extends undefined

      Parameters

      • value: K

        object

      Returns K

      Deep copy of an object