|
||
---|---|---|
.. | ||
bin | ||
docs | ||
etc | ||
lib | ||
package.json | ||
README.md |
Uint16Array Support
Detect native
Uint16Array
support.
Usage
var hasUint16ArraySupport = require( '@stdlib/assert/has-uint16array-support' );
hasUint16ArraySupport()
Detects if a runtime environment supports Uint16Array
.
var bool = hasUint16ArraySupport();
// returns <boolean>
Examples
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.' );
}
CLI
Usage
Usage: has-uint16array-support [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
Examples
$ has-uint16array-support
<boolean>