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

Function normalizeToArray

libs/echarts/echarts-en.simple.js:11727–11733  ·  view source on GitHub ↗

* If value is not array, then translate it to array. * @param {*} value * @return {Array} [value] or value

(value)

Source from the content-addressed store, hash-verified

11725 * @return {Array} [value] or value
11726 */
11727function normalizeToArray(value) {
11728 return value instanceof Array
11729 ? value
11730 : value == null
11731 ? []
11732 : [value];
11733}
11734
11735/**
11736 * Sync default option between normal and emphasis like `position` and `show`

Callers 8

visitComponentFunction · 0.70
mergeOptionFunction · 0.70
backwardCompatFunction · 0.70
toggleHighlightFunction · 0.70
seriesTaskResetFunction · 0.70
updateDirectlyFunction · 0.70
completeDimensionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected