check if the value is a generator function
check if the value is a generator function. pulled from co.
npm install is-gen-fn
isGenFn(function *() { ... }) // true isGenFn(function () { ... }) // false
MIT