@semcore/chart
Version:
Semrush Chart Component
10 lines • 340 B
JavaScript
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