MCPcopy Create free account
hub / github.com/microsoft/SandDance / defaultArrayMerge

Function defaultArrayMerge

docs/app/js/sanddance-app.js:6913–6917  ·  view source on GitHub ↗
(target, source, options)

Source from the content-addressed store, hash-verified

6911 return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
6912}
6913function defaultArrayMerge(target, source, options) {
6914 return target.concat(source).map(function(element) {
6915 return cloneUnlessOtherwiseSpecified(element, options);
6916 });
6917}
6918function mergeObject(target, source, options) {
6919 var destination = {};
6920 if (options.isMergeableObject(target)) Object.keys(target).forEach(function(key) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected