Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/has-async-await-support/docs/types/index.d"

Index

Functions

Export assignment hasAsyncAwaitSupport

  • hasAsyncAwaitSupport(): boolean
  • Tests for native async/await support.

    Returns boolean

    boolean indicating if an environment has native async/await support

    Example

    var bool = hasAsyncAwaitSupport();
    if ( bool ) {
        console.log( 'Environment has native async/await support.' );
    } else {
        console.log( 'Environment lacks native async/await support.' );
    }