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

Function getDataPoints

src/ui-react-dom-charts/common/data.ts:59–66  ·  view source on GitHub ↗
(
  rowIds: string[],
  getPoint: (rowId: string) => DataPoint | undefined,
)

Source from the content-addressed store, hash-verified

57const ISO_DATE = /^\d{4}-\d{2}-\d{2}(?:$|T)/;
58
59export const getDataPoints = (
60 rowIds: string[],
61 getPoint: (rowId: string) => DataPoint | undefined,
62) =>
63 arrayFilter(
64 arrayMap(rowIds, getPoint),
65 (point): point is DataPoint => !isUndefined(point),
66 );
67
68export const getDataPoint = (
69 rowId: string,

Callers 2

useSeriesDataFunction · 0.90
useInitialSeriesSummaryFunction · 0.90

Calls 3

arrayFilterFunction · 0.90
arrayMapFunction · 0.90
isUndefinedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…