Awesome
math-sum
Sum numbers
Install
npm install math-sum
Usage
import mathSum from 'math-sum';
mathSum(5, 5);
//=> 10
mathSum([1, 2, 3, 4]);
//=> 10
Related
- math-average - Get the average of numbers
- math-clamp - Clamp a number
Sum numbers
npm install math-sum
import mathSum from 'math-sum';
mathSum(5, 5);
//=> 10
mathSum([1, 2, 3, 4]);
//=> 10