1.0.1 • Published 8 years ago

divisibleby v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

divisibleby.js

Check if a number is divisible by a number or an array of numbers.

divisibleby(dividend, divisors)

  • divisor must be a array of numbers, can be a single number
  • will return true if dividend is dividable by all divisors
var divisibleby = require('divisibleby');
divisibleby(15, [3,5]); // returns true
divisibleby(15, [2, 0]); // returns false
1.0.1

8 years ago

1.0.0

8 years ago