UNPKG

victory-native

Version:

A charting library for React Native with a focus on performance and customization.

8 lines (6 loc) 262 B
import { type PointsArray } from "../types"; /** * Filters out points with missing y value, used for interpolating missing data. */ export const cleanPointsArray = (points: PointsArray): PointsArray => points.filter((point) => typeof point.y === "number");