Monday, March 5, 2018

There is an .isInfinite() in JavaScript not unlike .isNaN()

Find Infinity?

if (foo.isInfinite()) {

 
 

There is also an .isFinite() too.

No comments:

Post a Comment