名称 最后更新
..
test 正在载入提交数据...
.eslintrc 正在载入提交数据...
.jscs.json 正在载入提交数据...
.npmignore 正在载入提交数据...
.nvmrc 正在载入提交数据...
.travis.yml 正在载入提交数据...
CHANGELOG.md 正在载入提交数据...
LICENSE 正在载入提交数据...
Makefile 正在载入提交数据...
README.md 正在载入提交数据...
index.js 正在载入提交数据...
package.json 正在载入提交数据...
testling.html 正在载入提交数据...

#is-generator-function Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

Is this a native generator function?

Example

var isGeneratorFunction = require('is-generator-function');
assert(!isGeneratorFunction(function () {}));
assert(!isGeneratorFunction(null));
assert(isGeneratorFunction(function* () { yield 42; return Infinity; });

Tests

Simply clone the repo, npm install, and run npm test