Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return buckets.reduce((result: VisualizationObject.IMeasure[], bucket: VisualizationObject.IBucket) => {
const measureItems: VisualizationObject.IMeasure[] = bucket.items.filter(
VisualizationObject.isMeasure,
);
return result.concat(measureItems);
}, []);
}