Skip to content

Latest commit

 

History

History
113 lines (69 loc) · 1.94 KB

File metadata and controls

113 lines (69 loc) · 1.94 KB

Int32Array Support

Detect native Int32Array support.

Usage

var hasInt32ArraySupport = require( '@stdlib/utils/detect-int32array-support' );

hasInt32ArraySupport()

Detects if a runtime environment supports Int32Array.

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

Examples

var hasInt32ArraySupport = require( '@stdlib/utils/detect-int32array-support' );

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

CLI

Usage

Usage: hasint32arrays [options]

Options:

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

Examples

$ hasint32arrays
<boolean>