# Class Support
> Detect native [`class`][class] support.
## Usage
```javascript
var hasClassSupport = require( '@stdlib/assert/has-class-support' );
```
#### hasClassSupport()
Detects if a runtime environment supports ES2015 [`class`][class].
```javascript
var bool = hasClassSupport();
// returns
```
## Notes
- The implementation uses code evaluation, which may be problematic in browser contexts enforcing a strict [content security policy][mdn-csp] (CSP).
## Examples
```javascript
var hasClassSupport = require( '@stdlib/assert/has-class-support' );
var bool = hasClassSupport();
if ( bool ) {
console.log( 'Environment has native class support.' );
} else {
console.log( 'Environment lacks native class support.' );
}
```
* * *
## CLI
### Usage
```text
Usage: has-class-support [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
```
### Examples
```bash
$ has-class-support
```
[class]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
[mdn-csp]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP