DeepCopier

Class containing a set of static utilities functions for deep copy.

Hierarchy

  • DeepCopier

Index

Methods

Methods

Static DeepCopy

Find examples in Playground
  • DeepCopy(source: any, destination: any, doNotCopyList?: string[], mustCopyList?: string[]): void
  • Tries to copy an object by duplicating every property

    Parameters

    • source: any

      defines the source object

    • destination: any

      defines the target object

    • Optional doNotCopyList: string[]

      defines a list of properties to avoid

    • Optional mustCopyList: string[]

      defines a list of properties to copy (even if they start with _)

    Returns void

Generated using TypeDoc