isUnsignedIntegerDataType
Test if an input value is a supported ndarray unsigned integer data type.
Usage
var isUnsignedIntegerDataType = require( '@stdlib/ndarray/base/assert/is-unsigned-integer-data-type' );
isUnsignedIntegerDataType( value )
Tests if an input value
is a supported ndarray unsigned integer data type.
var bool = isUnsignedIntegerDataType( 'float32' );
// returns false
bool = isUnsignedIntegerDataType( 'uint32' );
// returns true
Examples
var isUnsignedIntegerDataType = require( '@stdlib/ndarray/base/assert/is-unsigned-integer-data-type' );
var bool = isUnsignedIntegerDataType( 'binary' );
// returns false
bool = isUnsignedIntegerDataType( 'float32' );
// returns false
bool = isUnsignedIntegerDataType( 'float64' );
// returns false
bool = isUnsignedIntegerDataType( 'generic' );
// returns false
bool = isUnsignedIntegerDataType( 'int16' );
// returns false
bool = isUnsignedIntegerDataType( 'int32' );
// returns false
bool = isUnsignedIntegerDataType( 'int8' );
// returns false
bool = isUnsignedIntegerDataType( 'uint16' );
// returns true
bool = isUnsignedIntegerDataType( 'uint32' );
// returns true
bool = isUnsignedIntegerDataType( 'uint8' );
// returns true
bool = isUnsignedIntegerDataType( 'uint8c' );
// returns true
bool = isUnsignedIntegerDataType( '' );
// returns false
bool = isUnsignedIntegerDataType( 'foo' );
// returns false