Uint16Array Support

Detect native Uint16Array support.

Usage

var hasUint16ArraySupport = require( '@stdlib/utils/detect-uint16array-support' );

hasUint16ArraySupport()

Detects if a runtime environment supports Uint16Array.

var bool = hasUint16ArraySupport();
// returns <boolean>

Examples

var hasUint16ArraySupport = require( '@stdlib/utils/detect-uint16array-support' );

var bool = hasUint16ArraySupport();
if ( bool ) {
    console.log( 'Environment has Uint16Array support.' );
} else {
    console.log( 'Environment lacks Uint16Array support.' );
}

CLI

Usage

Usage: hasuint16arrays [options]

Options:

  -h,    --help                Print this message.
  -V,    --version             Print the package version.

Examples

$ hasuint16arrays
<boolean>