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

Function isEmptyValue

_benchmarks/sample_antd.js:74765–74779  ·  view source on GitHub ↗
(value, type)

Source from the content-addressed store, hash-verified

74763}
74764
74765function isEmptyValue(value, type) {
74766 if (value === undefined || value === null) {
74767 return true;
74768 }
74769
74770 if (type === 'array' && Array.isArray(value) && !value.length) {
74771 return true;
74772 }
74773
74774 if (isNativeStringType(type) && typeof value === 'string' && !value) {
74775 return true;
74776 }
74777
74778 return false;
74779}
74780
74781function asyncParallelArray(arr, func, callback) {
74782 var results = [];

Callers 14

requiredFunction · 0.70
stringFunction · 0.70
methodFunction · 0.70
numberFunction · 0.70
_booleanFunction · 0.70
regexpFunction · 0.70
integerFunction · 0.70
floatFnFunction · 0.70
objectFunction · 0.70
enumerable$1Function · 0.70
pattern$2Function · 0.70
dateFunction · 0.70

Calls 1

isNativeStringTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…