time-to-botec/js/node_modules/@stdlib/assert/has-uint16array-support/README.md
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

2.0 KiB

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>