multiples-of

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i multiples-of

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jylopez