sum-of-multiples
v1.0.0
Published
Finds the sum of all multiples of numbers in an array below a maximum number.
Downloads
3
Maintainers
Readme
sum-of-multiples
Get the sum of multiples of each number in an array below a maximum number.
npm install sum-of-multiples -S
Usage
var sumOfMultiples = require('sum-of-multiples')
var result = sumOfMultiples([3, 5], 10)
console.log(result) // 23
API
sumOfMultiples([array of integers], maximum integer)
License
MIT