How do I group an array of objects in JavaScript and sum a field?
DEV Community
How do I group an array of objects in JavaScript and sum a field?
import { groupBy } from 'groupjs_by'; const byStatus = groupBy(orders, 'status') .sum('revenue',...
0 comments
No comments yet.