Check if async/await is available
download the latest release from link
npm install --save is-async-await-supported
isAsyncAwaitSupport(); // true means async/await is available
require(['${your path}/is-async-await-supported.min'], function (util) {
console.log(util.isAsyncAwaitSupport());
})
const isAsyncAwaitSupport = require('is-async-await-supported').isAsyncAwaitSupport;
isAsyncAwaitSupport(); // true means async/await is available
import { isAsyncAwaitSupport } from 'is-async-await-supported';
isAsyncAwaitSupport(); // true means async/await is available
import { isAsyncAwaitSupport } from '${your path}/is-async-await-supported.esm.js';
isAsyncAwaitSupport(); // true means async/await is available