• 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