isSupported
Checks if new ECMAScript features are supported or not.
const is = require('is-supported')
if (is.asyncSupported) {
console.log('Async is supported')
}
if (is.generatorSupported) {
console.log('Generators are supported')
}
Checks if a ECMAScript feature is supported or not. Checks async, generator and more...
Checks if new ECMAScript features are supported or not.
const is = require('is-supported')
if (is.asyncSupported) {
console.log('Async is supported')
}
if (is.generatorSupported) {
console.log('Generators are supported')
}