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