is-multiple-of
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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"

Readme

Keywords

none

Package Sidebar

Install

npm i is-multiple-of

Weekly Downloads

13

Version

1.1.0

License

ISC

Unpacked Size

2.54 kB

Total Files

7

Last publish

Collaborators

  • fizzbuzz-npm