5 lines
178 B
TypeScript
5 lines
178 B
TypeScript
import { RecentAction } from "../types";
|
|
|
|
export function sumRecentActionCounts(actions: RecentAction[]) {
|
|
return actions.reduce((total, action) => total + action.count, 0);
|
|
}
|