js check if number has decimals
snippet in javascript

js check if number has decimals

user4411

num % 1 != 0