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