API

Class DeepCopier

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

Index
  • Tries to copy an object by duplicating every property

    Parameters

    • source: any

      defines the source object

    • destination: any

      defines the target object

    • OptionaldoNotCopyList: string[]

      defines a list of properties to avoid

    • OptionalmustCopyList: string[]

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

    • shallowCopyValues: boolean = false

      defines wether properties referencing objects (none cloneable) must be shallow copied (false by default)

    Returns void

    shallowCopyValues will not instantite the copied values which makes it only usable for "JSON objects"