sum
Script
v3
Fork
1
2
3
4
5
import
{
sumBy
}
from
"https://esm.town/v/_/sumBy"
;
export
const
sum
=
(
array
)
=>
{
return
sumBy
(
array
,
(
n
)
=>
n
)
;
}
;