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