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

Function normalizeSetOptionInput

_benchmarks/sample_echarts.js:18668–18680  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

18666 }
18667
18668 function normalizeSetOptionInput(opts) {
18669 var replaceMergeMainTypeMap = createHashMap();
18670 opts && each(normalizeToArray(opts.replaceMerge), function (mainType) {
18671 if ("development" !== 'production') {
18672 assert(ComponentModel.hasClass(mainType), '"' + mainType + '" is not valid component main type in "replaceMerge"');
18673 }
18674
18675 replaceMergeMainTypeMap.set(mainType, true);
18676 });
18677 return {
18678 replaceMergeMainTypeMap: replaceMergeMainTypeMap
18679 };
18680 }
18681
18682 mixin(GlobalModel, PaletteMixin);
18683

Callers 1

sample_echarts.jsFile · 0.85

Calls 4

createHashMapFunction · 0.85
normalizeToArrayFunction · 0.85
eachFunction · 0.70
assertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…