Shenglian / -WORK_TIP

工作上小技巧
4 stars 1 forks source link

[js] detect integer #156

Open Shenglian opened 5 years ago

Shenglian commented 5 years ago
if (data === parseInt(data, 10))
    alert("data is integer")
else
    alert("data is not an integer")