is-generator-fn
v3.0.0
Published
Check if something is a generator function
Downloads
89,977,529
Maintainers
Readme
is-generator-fn
Check if something is a generator function
Install
$ npm install is-generator-fn
Usage
import isGeneratorFunction from 'is-generator-fn';
isGeneratorFunction(function * () {});
//=> true
isGeneratorFunction(function () {});
//=> false
Related
- is - Type check values