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