UNPKG

nummy

Version:

All the sweetness of Sugar's number module without extending natives.

6 lines (5 loc) 169 B
var _ = require('../utils'); var moduloOf = require('../math/moduloOf'); module.exports = function (n, num) { return !_.anyNaN(n, num) && moduloOf(n, num) === 0; };