cleanMerge
Merges simple objects recursivly in a predictable manner.
API:
var merge = ; // Merge:; // Clone:;
clean-merge will always take the source value when it is defined, eg:
var target = a:1 b:2 c:3;var source = b:10 c:null; var result = ;
merge will use the targets a
value, as it is not defined in source.
merge will use all values from the source, even null and undefined.
Notes
clean-merge is intentionally simple, and is intended to be used with objects that do not have cyclic references.