# isClass
> Test if a value is a [class][mdn-class].
## Usage
```javascript
var isClass = require( '@stdlib/assert/is-class' );
```
#### isClass( value )
Tests if a value is a [`class`][mdn-class].
```javascript
var bool = isClass( class Animal {
speak() {
return this;
}
} );
// returns true
var Rectangle = class {
constructor( height, width ) {
this.height = height;
this.width = width;
}
};
bool = isClass( Rectangle );
// returns true
bool = isClass( null );
// returns false
```
## Examples
```javascript
var isClass = require( '@stdlib/assert/is-class' );
var bool = isClass( class Person {} );
// returns true
bool = isClass( function Person() {} );
// returns false
bool = isClass( [] );
// returns false
bool = isClass( {} );
// returns false
bool = isClass( null );
// returns false
```
[mdn-class]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes