Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

isInt64

Test if a value is a 64-bit signed integer.

Usage

var isInt64 = require( '@stdlib/assert/is-int64' );

isInt64( value )

Tests if a value is a 64-bit signed integer.

var Int64 = require( '@stdlib/number/int64/ctor' );

var x = new Int64( 1234 );

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

Examples

var Complex128 = require( '@stdlib/complex/float64/ctor' );
var Int64 = require( '@stdlib/number/int64/ctor' );
var isInt64 = require( '@stdlib/assert/is-int64' );

console.log( isInt64( new Int64( 1234 ) ) );
// => true

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

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

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