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

Function stringToUserReadable

_benchmarks/sample_echarts.js:16476–16478  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

16474 var USER_READABLE_DEFUALT_TIME_PATTERN = '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}';
16475
16476 function stringToUserReadable(str) {
16477 return str && trim(str) ? str : '-';
16478 }
16479
16480 function isNumberUserReadable(num) {
16481 return !!(num != null && !isNaN(num) && isFinite(num));

Callers 1

makeValueReadableFunction · 0.85

Calls 1

trimFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…