Summm safely adds numbers in Javascript by ensuring the values are valid numbers and typecasting them prior to evaluation. This ensures that you actually add numbers instead of concating them.
$ npm install --save summm
var sum = require('summm')
sum(4, 2)
// => 6
sum('4', 2)
// => 6
sum([4, 2, 1])
// => 7
Required
Type: number
\ array of numbers
The numbers you'd like to get the sum of. Can be an array of numbers or each number provided as an argument.