2.0 KiB
2.0 KiB
Uint32Array Support
Detect native
Uint32Array
support.
Usage
var hasUint32ArraySupport = require( '@stdlib/assert/has-uint32array-support' );
hasUint32ArraySupport()
Detects if a runtime environment supports Uint32Array
.
var bool = hasUint32ArraySupport();
// returns <boolean>
Examples
var hasUint32ArraySupport = require( '@stdlib/assert/has-uint32array-support' );
var bool = hasUint32ArraySupport();
if ( bool ) {
console.log( 'Environment has Uint32Array support.' );
} else {
console.log( 'Environment lacks Uint32Array support.' );
}
CLI
Usage
Usage: has-uint32array-support [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
Examples
$ has-uint32array-support
<boolean>