# Async/Await Support > Detect native [`async`][mdn-async]/[`await`][mdn-await] support.
## Usage ```javascript var hasAsyncAwaitSupport = require( '@stdlib/assert/has-async-await-support' ); ``` #### hasAsyncAwaitSupport() Detects if a runtime environment supports ES2017 [`async`][mdn-async]/[`await`][mdn-await]. ```javascript var bool = hasAsyncAwaitSupport(); // 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 hasAsyncAwaitSupport = require( '@stdlib/assert/has-async-await-support' ); var bool = hasAsyncAwaitSupport(); if ( bool ) { console.log( 'Environment has native async/await support.' ); } else { console.log( 'Environment lacks native async/await support.' ); } ```
* * *
## CLI
### Usage ```text Usage: has-async-await-support [options] Options: -h, --help Print this message. -V, --version Print the package version. ```
### Examples ```bash $ has-async-await-support ```