ArrayBuffer Support
Detect native
ArrayBuffer
support.
Usage
var hasArrayBufferSupport = require( '@stdlib/assert/has-arraybuffer-support' );
hasArrayBufferSupport()
Detects if a runtime environment supports ArrayBuffer
.
var bool = hasArrayBufferSupport();
// returns <boolean>
Examples
var hasArrayBufferSupport = require( '@stdlib/assert/has-arraybuffer-support' );
var bool = hasArrayBufferSupport();
if ( bool ) {
console.log( 'Environment has ArrayBuffer support.' );
} else {
console.log( 'Environment lacks ArrayBuffer support.' );
}
CLI
Usage
Usage: has-arraybuffer-support [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
Examples
$ has-arraybuffer-support
<boolean>