Skip to main content

CommonCloneDeep

Callable

  • CommonCloneDeep<T>(obj, reviver, replacer): T

  • Deep-clones an object


    Parameters

    • obj: T
    • optionalreviver: (this, key, value) => any = null
      • optionalreplacer: (this, key, value) => any = null

        Returns T

        JSON serialization will break things like functions, Sets and Maps.