Test if a value is a numeric array.
var isNumericArray = require( '@stdlib/assert/is-numeric-array' );
Tests if a value is a numeric array.
var bool = isNumericArray( new Int8Array( 10 ) );
// returns true
bool = isNumericArray( [ 1, 2, 3 ] );
// returns true
bool = isNumericArray( [ '1', '2', '3' ] );
// returns false
var isNumericArray = require( '@stdlib/assert/is-numeric-array' );
var arr = new Int8Array( 10 );
var bool = isNumericArray( arr );
// returns true
arr = new Uint8Array( 10 );
bool = isNumericArray( arr );
// returns true
arr = new Uint8ClampedArray( 10 );
bool = isNumericArray( arr );
// returns true
arr = new Int16Array( 10 );
bool = isNumericArray( arr );
// returns true
arr = new Uint16Array( 10 );
bool = isNumericArray( arr );
// returns true
arr = new Int32Array( 10 );
bool = isNumericArray( arr );
// returns true
arr = new Uint32Array( 10 );
bool = isNumericArray( arr );
// returns true
arr = new Float32Array( 10 );
bool = isNumericArray( arr );
// returns true
arr = new Float64Array( 10 );
bool = isNumericArray( arr );
// returns true
arr = [ 1, 2, 3 ];
bool = isNumericArray( arr );
// returns true
bool = isNumericArray( [] );
// returns false
bool = isNumericArray( {} );
// returns false
bool = isNumericArray( null );
// returns false
bool = isNumericArray( new Buffer( 10 ) );
// returns false