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

Function getDataItemValue

_benchmarks/sample_echarts.js:7283–7285  ·  view source on GitHub ↗

* The method do not ensure performance. * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}] * This helper method retieves value from data.

(dataItem)

Source from the content-addressed store, hash-verified

7281 */
7282
7283 function getDataItemValue(dataItem) {
7284 return isObject(dataItem) && !isArray(dataItem) && !(dataItem instanceof Date) ? dataItem.value : dataItem;
7285 }
7286 /**
7287 * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
7288 * This helper method determine if dataItem has extra option besides value

Callers 4

doGuessOrdinalFunction · 0.85
sample_echarts.jsFile · 0.85

Calls 2

isObjectFunction · 0.70
isArrayFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…