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

Number.isEven

isEven() -> boolean

Description

return true if the number is an even number.

$num = 2
$num.isEven() //= true

$num = 0
$num.isEven() //= true

$num = 3
$num.isEven() //= false

$num = 108
$num.isEven() //= true

$num = -20
$num.isEven() //= true

See Also