MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / detectValue

Function detectValue

libs/echarts/echarts-en.simple.js:21203–21213  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

21201 }
21202
21203 function detectValue(val) {
21204 var beStr = isString(val);
21205 // Consider usage convenience, '1', '2' will be treated as "number".
21206 // `isFinit('')` get `true`.
21207 if (val != null && isFinite(val) && val !== '') {
21208 return beStr ? BE_ORDINAL.Might : BE_ORDINAL.Not;
21209 }
21210 else if (beStr && val !== '-') {
21211 return BE_ORDINAL.Must;
21212 }
21213 }
21214
21215 return BE_ORDINAL.Not;
21216}

Callers 1

doGuessOrdinalFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected