MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getXValue

Function getXValue

src/ui-react-dom-charts/common/data.ts:412–423  ·  view source on GitHub ↗
(
  cell: CellOrUndefined | ResultCellOrUndefined,
)

Source from the content-addressed store, hash-verified

410};
411
412const getXValue = (
413 cell: CellOrUndefined | ResultCellOrUndefined,
414): XValue | undefined =>
415 isNumber(cell)
416 ? isFiniteNumber(cell)
417 ? cell
418 : undefined
419 : isString(cell)
420 ? cell
421 : isTrue(cell) || isFalse(cell)
422 ? cell
423 : undefined;
424
425const getYValue = (
426 cell: CellOrUndefined | ResultCellOrUndefined,

Callers 1

getDataPointFunction · 0.70

Calls 4

isNumberFunction · 0.90
isStringFunction · 0.90
isTrueFunction · 0.90
isFalseFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…