Numbers.sum()
Syntax
function sum(...values: number[]): number
Gets the sum of a sequence of numbers.
Parameters | |
values
Rest
|
The values to add together. |
Example
import { Numbers } from 'potence';
Numbers.sum(1, 2, 3); // -> 6