is-multiple-of
v1.1.0
Published
Is `value` a multiple of `multiple`?
Downloads
86
Readme
is-multiple-of
Is value
a multiple of multiple
?
Usage
const isMultipleOf = require("is-multiple-of");
console.log(isMultipleOf(6, 2)); //Prints "true"
console.log(isMultipleOf(70, 4)); //Prints "false"
console.log(isMultipleOf("50", "10")); //Prints "true"