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

Function updateValues

_benchmarks/sample_antd.js:102982–102991  ·  view source on GitHub ↗
(values, value, index)

Source from the content-addressed store, hash-verified

102980 return values ? values[index] : null;
102981}
102982function updateValues(values, value, index) {
102983 var newValues = [getValue(values, 0), getValue(values, 1)];
102984 newValues[index] = typeof value === 'function' ? value(newValues[index]) : value;
102985
102986 if (!newValues[0] && !newValues[1]) {
102987 return null;
102988 }
102989
102990 return newValues;
102991}
102992
102993/***/ }),
102994

Callers

nothing calls this directly

Calls 2

valueFunction · 0.85
getValueFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…