MCPcopy
hub / github.com/tdewolff/minify / defaults

Function defaults

_benchmarks/sample_echarts.js:289–298  ·  view source on GitHub ↗
(target, source, overlay)

Source from the content-addressed store, hash-verified

287 return target;
288 }
289 function defaults(target, source, overlay) {
290 var keysArr = keys(source);
291 for (var i = 0; i < keysArr.length; i++) {
292 var key = keysArr[i];
293 if ((overlay ? source[key] != null : target[key] == null)) {
294 target[key] = source[key];
295 }
296 }
297 return target;
298 }
299 var createCanvas = function () {
300 return methods.createCanvas();
301 };

Callers 15

mixinFunction · 0.70
sample_echarts.jsFile · 0.70
createIconFunction · 0.70
setTooltipConfigFunction · 0.70
leveledFormatFunction · 0.70
positionElementFunction · 0.70
convertNormalEmphasisFunction · 0.70
globalBackwardCompatFunction · 0.70
defaultLoadingFunction · 0.70
setLabelLineStyleFunction · 0.70
inheritStyleFunction · 0.70

Calls 1

keysFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…