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

Function use

_benchmarks/sample_echarts.js:31726–31748  ·  view source on GitHub ↗
(ext)

Source from the content-addressed store, hash-verified

31724 }
31725 };
31726 function use(ext) {
31727 if (isArray(ext)) {
31728 // use([ChartLine, ChartBar]);
31729 each(ext, function (singleExt) {
31730 use(singleExt);
31731 });
31732 return;
31733 }
31734
31735 if (indexOf(extensions, ext) >= 0) {
31736 return;
31737 }
31738
31739 extensions.push(ext);
31740
31741 if (isFunction(ext)) {
31742 ext = {
31743 install: ext
31744 };
31745 }
31746
31747 ext.install(extensionRegisters);
31748 }
31749
31750 /*
31751 * Licensed to the Apache Software Foundation (ASF) under one

Callers 15

codeFixAllFunction · 0.85
install$6Function · 0.85
install$8Function · 0.85
install$aFunction · 0.85
install$hFunction · 0.85
install$tFunction · 0.85
install$uFunction · 0.85
install$vFunction · 0.85
install$zFunction · 0.85
install$AFunction · 0.85
install$IFunction · 0.85
install$JFunction · 0.85

Calls 4

isArrayFunction · 0.70
eachFunction · 0.70
indexOfFunction · 0.70
isFunctionFunction · 0.70

Tested by

no test coverage detected