Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

isEqualUint32Array

Test if two arguments are both Uint32Arrays and have equal values.

Usage

var isEqualUint32Array = require( '@stdlib/assert/is-equal-uint32array' );

isEqualUint32Array( v1, v2 )

Tests if two arguments are both Uint32Arrays and have equal values.

var Uint32Array = require( '@stdlib/array/uint32' );

var x = new Uint32Array( [ 1, 2 ] );
var y = new Uint32Array( [ 1, 2 ] );
var bool = isEqualUint32Array( x, y );
// returns true

bool = isEqualUint32Array( x, new Uint32Array( [ 1, 3 ] ) );
// returns false

Examples

var Uint32Array = require( '@stdlib/array/uint32' );
var isEqualUint32Array = require( '@stdlib/assert/is-equal-uint32array' );

var x = new Uint32Array( [ 1, 2, 3 ] );
var y = new Uint32Array( [ 1, 2, 3 ] );
var out = isEqualUint32Array( x, y );
// returns true

x = new Uint32Array( [ 0, 0, 0 ] );
y = [ 0, 0, 0 ];
out = isEqualUint32Array( x, y );
// returns false

x = new Uint32Array( [ 1, 2, 3 ] );
y = new Uint32Array( [ 1, 2, 4 ] );
out = isEqualUint32Array( x, y );
// returns false