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

Number.isInt

isInt() -> boolean

Description

Return true if the number is an integer (whole number).

$num = 123
$num.isInt()
//= true

$num = 123.4
$num.isInt()
//= false

See Also