Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method MathUtil.prototype.arraySum
Re-export
import { MathUtil } from "https://deno.land/x/sptaki@1.2.0/utils/mod.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)