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