mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
4 lines
138 B
TypeScript
4 lines
138 B
TypeScript
export function sum(...effects: [boolean, number][]) {
|
|
return effects.reduce((accumulator, b) => accumulator + (b[0] ? b[1] : 0), 0);
|
|
}
|