Identifies whether the type is a plain object or not, this also saves each handler from checking
the type
, currently the type will also be "object" if this is true
.
Identifies whether the type of the value is considered to be a primitive value
Optional
originThe original source object passed into the objDeepCopy()
or objCopyProps()
functions.
A array of keys from the orginal source (origin) object which lead to the current value
Replace this value with the new deep copied value (defaults to the same as the value property) this value will be used when returning true from the handler. Ignored when the handler returns false.
Identifies the type of the value as per typeof value
, saves each check having to process this value.
Readonly
valueThe current value to be processed, replace this value with the new deep copied value to use when returning true from the handler. Ignored when the handler returns false.
Continue the deep copy with the current context and recursive checks, effectively calls objDeepCopy but keeps the current context and recursive references.
The source object to be copied
Optional
key: string | number | symbolContinue the deep copy with the current context and recursive checks by copying all of the properties from the source to the target instance, effectively calls objCopyProps but keeps the current context and recursive references.
Context details passed to the deep copy handler to allow it parse the current value based on the original source and path to reach the current value. The provided value should be updated with the value to by copied into the new deep copy and will be used when the handler returns true.
Since
0.4.4