Skip to main content

CommonCloneDeep

Callable

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

  • Deep-clones an object

    @todo

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


    Parameters

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

        Returns T