db-vendo-client/format/location-filter.js

9 lines
211 B
JavaScript
Raw Normal View History

const formatLocationFilter = (stops, addresses, poi) => {
if (stops && addresses && poi) return 'ALL'
return (stops ? 'S' : '') + (addresses ? 'A' : '') + (poi ? 'P' : '')
2017-11-12 00:45:51 +01:00
}
2022-05-07 16:17:37 +02:00
export {
formatLocationFilter,
}