@micro-js/is-generator-function
v1.0.0
Published
Check if generator function.
Downloads
8
Readme
is-generator-function
Check if generator function.
Installation
$ npm install @micro-js/is-generator-function
Usage
var isGeneratorFunction = require('@micro-js/is-generator-function')
isGeneratorFunction(function * () {
yield 1
}) // => true
API
isGeneratorFunction(obj)
obj
- object to test
Returns: boolean
License
MIT