import { compact , flatten } from 'lodash' ; import { mapFilter } from './map_filter' ; import { Filter } from '../../../../common' ; export const mapAndFlattenFilters = ( filters ) => { return compact ( flatten ( filters ) ) . map ( ( item ) => mapFilter ( item ) ) ; } ;