Number Extensions

in-built methods in ES6 to play with numbers

ES6 gives you a built-in isInteger check. Earlier, we had to implement different tricks to determine if a number is an integer. These tricks were not too semantic. In ES6, all we need to do is call

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.