# ArrayBuffer Support > Detect native [`ArrayBuffer`][mdn-arraybuffer] support.
## Usage ```javascript var hasArrayBufferSupport = require( '@stdlib/assert/has-arraybuffer-support' ); ``` #### hasArrayBufferSupport() Detects if a runtime environment supports [`ArrayBuffer`][mdn-arraybuffer]. ```javascript var bool = hasArrayBufferSupport(); // returns ```
## Examples ```javascript 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 ```text Usage: has-arraybuffer-support [options] Options: -h, --help Print this message. -V, --version Print the package version. ```
### Examples ```bash $ has-arraybuffer-support ```