is-async-generator

0.1.3 • Public • Published

is-async-generator

Build Status

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

/is-async-generator/

    Package Sidebar

    Install

    npm i is-async-generator

    Weekly Downloads

    0

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    2.5 kB

    Total Files

    4

    Last publish

    Collaborators

    • neosiae