MCPcopy Index your code
hub / github.com/apache/echarts / normalizeToArray

Function normalizeToArray

src/util/model.ts:87–93  ·  view source on GitHub ↗
(value?: T | T[])

Source from the content-addressed store, hash-verified

85 * @return {Array} [value] or value
86 */
87export function normalizeToArray<T>(value?: T | T[]): T[] {
88 return value instanceof Array
89 ? value
90 : value == null
91 ? []
92 : [value];
93}
94
95/**
96 * Sync default option between normal and emphasis like `position` and `show`

Callers 15

setDefaultFunction · 0.90
brushPreprocessorFunction · 0.90
sortTransform.tsFile · 0.90
seriesTaskResetFunction · 0.90
setOptionMethod · 0.90
getColorFromPaletteMethod · 0.90
getDecalFromPaletteFunction · 0.90
prepareSeriesDataSchemaFunction · 0.90
applyDataTransformFunction · 0.90
applySingleDataTransformFunction · 0.90
transitionSeriesFromOptFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…