Libraries v5.0.0
    Preparing search index...

    Function deepClone

    • Copies plain objects, arrays and Dates, preserving cycles, shared references, sparse arrays and null prototypes. Other values (including class instances, Files, Maps and Sets) retain their identity.

      Enumerable own string/symbol properties are read and copied as writable data properties; accessors, non-enumerable properties and descriptors are not cloned.

      Type Parameters

      • T

      Parameters

      • value: T

      Returns T