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
Return true
if the number is an integer (whole number).
$num = 123 $num.isInt() //= true $num = 123.4 $num.isInt() //= false