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