UNPKG

victory-native

Version:

[![Victory Native](https://oss.nearform.com/api/banner?badge=victory&text=victory+native&bg=9c2f1e)](https://commerce.nearform.com/open-source/victory-native/)

13 lines (12 loc) 386 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stitchDataArray = void 0; /** * Stitches together PointsArray into an array of tuples for d3 consumption */ const stitchDataArray = (data) => data.reduce((acc, { x, y }) => { if (typeof y === "number") acc.push([x, y]); return acc; }, []); exports.stitchDataArray = stitchDataArray;