import { Filter } from '@empathyco/x-types' ; param someFilters param anotherFilters returns public export function areFiltersDifferent ( someFilters , anotherFilters ) { return ( someFilters . length !== anotherFilters . length || someFilters . some ( filter => ! anotherFilters . find ( otherFilter => otherFilter . id === filter . id ) ) ) ; } param filterIds returns public export function createRawFilters ( filterIds ) { return filterIds . map ( filterId => { return { id : filterId , modelName : 'RawFilter' , selected : true } ; } ) ; }