Skip to main content

CommonCloneDeep

Callable

  • CommonCloneDeep<T>(obj: T, reviver?: (this: any, key: string, value: any) => any, replacer?: (this: any, key: string, value: any) => any): T

  • Deep-clones an object

    @todo

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


    Type parameters

    • T

    Parameters

    • obj: T
    • reviver: (this: any, key: string, value: any) => any = null
      • replacer: (this: any, key: string, value: any) => any = null

        Returns T