Skip to main content
The Deno 2 Release Candidate is here
Learn more
method MathUtil.prototype.arraySum
import { MathUtil } from "https://deno.land/x/sptaki@1.2.0/utils/MathUtil.d.ts";

Helper to create the sum of all array elements

Parameters

values: number[]

The array with numbers of which to calculate the sum

Returns

number

sum(values)