UNPKG

@semcore/chart

Version:
10 lines 340 B
import hasNull from './hasNull'; export default function deleteNullCurvePoints(points, dataKey) { return points.reduce(function (acc, point, index) { if (!hasNull(point, dataKey) || index === 0 || index === points.length - 1) { acc.push(point); } return acc; }, []); } //# sourceMappingURL=deleteNullCurvePoints.js.map