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

Helper to add a constant to all array elements

Parameters

values: number[]

The array of numbers to which the summand should be added

summand: number

Returns

number[]

array plus summand