Class DeepCopier
Constructors
constructor
-
Returns DeepCopier
Methods
StaticDeep Copy
-
DeepCopy(
source: any,
destination: any,
doNotCopyList?: string[],
mustCopyList?: string[],
shallowCopyValues?: boolean,
): voidTries 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
- source: any
Class containing a set of static utilities functions for deep copy.