Skip to content

🐇 Returns all multiples of an array of numbers below a maximum number

Notifications You must be signed in to change notification settings

jylopez/multiples-of

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multiples-of npm version

Returns all multiples of an array of numbers below a maximum number.

Install

npm install multiples-of

Usage

/*
Return an array of all the natural numbers below 10 that are multiples of 2 or 3.
*/

var multiplesOf = require('multiples-of');
console.log( multiplesOf([2, 3], 10) ) // [ 0, 2, 3, 4, 6, 8, 9 ]

API

multiplesOf([array of integers], maximum integer)

License

MIT

About

🐇 Returns all multiples of an array of numbers below a maximum number

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published