Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Number.isMultipleOf

isMultipleOf($otherNum) -> boolean

Description

return true if the number is a multiple of $otherNum.

$otherNum must be a positive integer, greater than zero.

$num = 32

$num.isMultipleOf(2) //= true

$num.isMultipleOf(7) //= false

See Also