value to test
boolean indicating whether the value is a positive integer
var bool = isPositiveInteger( 1.0 );
// returns true
var bool = isPositiveInteger( 0.0 );
// returns false
var bool = isPositiveInteger( -10.0 );
// returns false
Tests if a finite double-precision floating-point number is a positive integer.
Notes
true
, when, in fact, the result is undefined.