ArrayBuffer Support

Detect native ArrayBuffer support.

Usage

var hasArrayBufferSupport = require( '@stdlib/utils/detect-arraybuffer-support' );

hasArrayBufferSupport()

Detects if a runtime environment supports ArrayBuffer.

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

Examples

var hasArrayBufferSupport = require( '@stdlib/utils/detect-arraybuffer-support' );

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

CLI

Usage

Usage: hasarraybuffers [options]

Options:

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

Examples

$ hasarraybuffers
<boolean>