IsFinite

From PlainOldWebserver

(Redirected from Finite)
Jump to: navigation, search

isFinite()

isFinite() detects whether input is finite. At least testing this allows you to perform a coding no-no.


 var a = 1/0;
 if(! isFinite(a)) {
   document.writeln("a is not finite");
 }

Result:

 a is not finite
Personal tools
Navigation