Appearance
The sum function takes a list of numbers and returns the sum of those numbers.
arguments
arr: number[]
returns
number
import { sum } from 'func-dash' sum([1, 2, 3]) // 6 sum([1, 2, 3, 4, 5]) // 15