# SharedArrayBuffer Support
> Detect native [`SharedArrayBuffer`][mdn-sharedarraybuffer] support.
## Usage
```javascript
var hasSharedArrayBufferSupport = require( '@stdlib/assert/has-sharedarraybuffer-support' );
```
#### hasSharedArrayBufferSupport()
Detects if a runtime environment supports [`SharedArrayBuffer`][mdn-sharedarraybuffer].
```javascript
var bool = hasSharedArrayBufferSupport();
// returns
```
## Examples
```javascript
var hasSharedArrayBufferSupport = require( '@stdlib/assert/has-sharedarraybuffer-support' );
var bool = hasSharedArrayBufferSupport();
if ( bool ) {
console.log( 'Environment has SharedArrayBuffer support.' );
} else {
console.log( 'Environment lacks SharedArrayBuffer support.' );
}
```
* * *
## CLI
### Usage
```text
Usage: has-sharedarraybuffer-support [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
```
### Examples
```bash
$ has-sharedarraybuffer-support
```
[mdn-sharedarraybuffer]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer