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

Function normalizeToArray

_benchmarks/sample_echarts.js:7238–7240  ·  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

7236 */
7237
7238 function normalizeToArray(value) {
7239 return value instanceof Array ? value : value == null ? [] : [value];
7240 }
7241 /**
7242 * Sync default option between normal and emphasis like `position` and `show`
7243 * In case some one will write code like

Callers 15

makeMapFunction · 0.85
sample_echarts.jsFile · 0.85
getDecalFromPaletteFunction · 0.85
visitComponentFunction · 0.85
normalizeSetOptionInputFunction · 0.85
globalBackwardCompatFunction · 0.85
applyDataTransformFunction · 0.85
applySingleDataTransformFunction · 0.85
toggleHighlightFunction · 0.85
seriesTaskResetFunction · 0.85
completeDimensionsFunction · 0.85
setDefaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…