Detect native
ArrayBuffer
support.
var hasArrayBufferSupport = require( '@stdlib/utils/detect-arraybuffer-support' );
Detects if a runtime environment supports ArrayBuffer
.
var bool = hasArrayBufferSupport();
// returns <boolean>
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.' );
}
Usage: hasarraybuffers [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
$ hasarraybuffers
<boolean>