MCPcopy
hub / github.com/apache/echarts / isDataItemOption

Function isDataItemOption

src/util/model.ts:162–167  ·  view source on GitHub ↗
(dataItem: OptionDataItem)

Source from the content-addressed store, hash-verified

160 * This helper method determine if dataItem has extra option besides value
161 */
162export function isDataItemOption(dataItem: OptionDataItem): boolean {
163 return isObject(dataItem)
164 && !(dataItem instanceof Array);
165 // // markLine data can be array
166 // && !(dataItem[0] && isObject(dataItem[0]) && !(dataItem[0] instanceof Array));
167}
168
169// Compatible with previous definition: id could be number (but not recommended).
170// number and string are treated the same when compared.

Callers 1

_doInitMethod · 0.90

Calls 1

isObjectFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…