Number Extensions in Javascript
Number benefits from several changes in ES6, providing several of new methods saving us from writing our own potentially error prone implementation. There are quite a lot of methods so here are some of the ones that are likely to have more use: Number.isFinite Determines whether a number is finite (finite means that it could be measured or have a value). Number.isFinite(Infinity); //false Number.isFinite(100); //true Number.isInteger Determines if a number is an integer or not....