0.1.3 • Published 5 years ago
is-async-generator v0.1.3
is-async-generator
Check if given function is asynchronous generator or not.
Install
$ npm install is-async-generator
Usage
const isAsyncGenerator = require('is-async-generator')
isAsyncGenerator(async function * () {}) // true
isAsyncGenerator(function * () {}) // false