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

Function makeComparableKey

_benchmarks/sample_echarts.js:7576–7584  ·  view source on GitHub ↗

* @return return null if not exist.

(val)

Source from the content-addressed store, hash-verified

7574
7575
7576 function makeComparableKey(val) {
7577 if ("development" !== 'production') {
7578 if (val == null) {
7579 throw new Error();
7580 }
7581 }
7582
7583 return convertOptionIdName(val, '');
7584 }
7585
7586 function convertOptionIdName(idOrName, defaultValue) {
7587 if (idOrName == null) {

Callers 3

mappingByIdFunction · 0.85
makeIdAndNameFunction · 0.85
isComponentIdInternalFunction · 0.85

Calls 1

convertOptionIdNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…