MCPcopy
hub / github.com/microsoft/SandDance / merge

Function merge

docs/app/js/sanddance-app.js:25619–25627  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

25617 * original reference.
25618 */ parcelHelpers.export(exports, "merge", ()=>merge);
25619function merge(target) {
25620 var args = [];
25621 for(var _i = 1; _i < arguments.length; _i++)args[_i - 1] = arguments[_i];
25622 for(var _a = 0, args_1 = args; _a < args_1.length; _a++){
25623 var arg = args_1[_a];
25624 _merge(target || {}, arg);
25625 }
25626 return target;
25627}
25628/**
25629 * The _merge helper iterates through all props on source and assigns them to target.
25630 * When the value is an object, we will create a deep clone of the object. However if

Callers 1

insertFunction · 0.70

Calls 5

_mergeFunction · 0.85
streamFunction · 0.70
flattenFunction · 0.70
addMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected