Standard library basic mathematical assertion utilities.
var ns = require( '@stdlib/math/base/assert' );
Standard library basic mathematical assertion utilities.
var o = ns;
// returns {...}
isEvenInt32( x )
: test if a 32-bit integer is even.isOddInt32( x )
: test if a 32-bit integer is odd.isEven( x )
: test if a finite numeric value is an even number.isFinite( x )
: test if a numeric value is finite.isInfinite( x )
: test if a numeric value is infinite.isInteger( x )
: test if a finite double-precision floating-point number is an integer.isnan( x )
: test if a numeric value is NaN.isNegativeInteger( x )
: test if a finite double-precision floating-point number is a negative integer.isNegativeZero( x )
: test if a numeric value is negative zero.isNonNegativeInteger( x )
: test if a finite double-precision floating-point number is a nonnegative integer.isNonPositiveInteger( x )
: test if a finite double-precision floating-point number is a nonpositive integer.isOdd( x )
: test if a finite numeric value is an odd number.isPositiveInteger( x )
: test if a finite double-precision floating-point number is a positive integer.isPositiveZero( x )
: test if a numeric value is positive zero.isProbability( x )
: test if a numeric value is a probability.isSafeInteger( x )
: test if a finite double-precision floating-point number is a safe integer.isPow2Uint32( x )
: test whether an unsigned integer is a power of 2.
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/math/base/assert' );
console.log( objectKeys( ns ) );