Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
model.reduce((locationArray: Array, result: Result) => {
const location = result
.get('metacard')
.get('properties')
.get('location')
if (location) {
const geometry = Geometry.parse(location)
locationArray.push(`(${CqlUtils.buildIntersectCQL(geometry)})`)
}
return locationArray
}, [])