import type { TLineChartData , TLineChartDataProp } from '../types' ; export function lineChartDataPropToArray ( dataProp ) { 'worklet' ; if ( ! dataProp ) { return [ ] ; } if ( Array . isArray ( dataProp ) ) { return dataProp ; } const data = [ ] ; Object . values ( dataProp ) . forEach ( ( dataSet ) => { if ( dataSet ) { data . push ( ... dataSet ) ; } } ) ; return data ; }