import { Datatable } from '../../../../expressions' ; import { ExpressionValueVisDimension } from '../../../../visualizations/common' ; export const getColumnByAccessor = ( accessor , columns = [ ] ) => { if ( typeof accessor === 'number' ) { return columns [ accessor ] ; } return columns . filter ( ( { id } ) => accessor . id === id ) [ 0 ] ; } ;