https://src.bluestatic.org
/
ustaxlib.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove reduceBySum() to Math.
[ustaxlib.git]
/
src
/
Math.ts
1
export function clampToZero(value: number): number {
2
return value < 0 ? 0 : value;
3
}
4
5
export const reduceBySum = (list: number[]) => list.reduce((acc, curr) => acc + curr, 0);