You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letisInteger=n=>{if(typeof(n)!='NAN'&&n%1===0)returntrue;returnfalse;}// let a=isInteger(5);// console.log(a);=>true// let b=isInteger(5.5);// console.log(b);=>fasle
Activity
NicholasBaiYa commentedon Jan 19, 2020
lijiaxu1996 commentedon Jan 19, 2020
benbenye commentedon Jan 20, 2020
xiaoqiangz commentedon Aug 30, 2022
const isInteger = n => n % 1 === 0