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