Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

isUint64

Test if a value is an unsigned 64-bit integer.

Usage

var isUint64 = require( '@stdlib/assert/is-uint64' );

isUint64( value )

Tests if a value is an unsigned 64-bit integer.

var Uint64 = require( '@stdlib/number/uint64/ctor' );

var x = new Uint64( 1234 );

var bool = isUint64( x );
// returns true

Examples

var Uint64 = require( '@stdlib/number/uint64/ctor' );
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var isUint64 = require( '@stdlib/assert/is-uint64' );

console.log( isUint64( new Uint64( 1234 ) ) );
// => true

console.log( isUint64( new Complex128( 3.0, 1.0 ) ) );
// => false

console.log( isUint64( {} ) );
// => false

console.log( isUint64( null ) );
// => false