Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const calculateMode = (raster, coors) => {
const modes = geoblaze.mode(raster, coors);
return modes.map(band => {
if (typeof band === 'number') return band;
return band.join(", ");
});
}