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

Number.isOdd

isOdd() -> boolean

Description

return true if the number is an odd number.

$num = 1
$num.isOdd() //= true

$num = 0
$num.isOdd() //= false

$num = 23
$num.isOdd() //= true

$num = 2
$num.isOdd() //= false

$num = -5
$num.isOdd() //= true

See Also