Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function area(geojson: Feature | FeatureCollection | Geometry) {
return geomReduce(geojson, (value, geom) => {
return value + calculateArea(geom);
}, 0);
}