张益铭 9064b372e8 docs:更新文档 hace 4 años
..
test 9064b372e8 docs:更新文档 hace 4 años
.editorconfig 9064b372e8 docs:更新文档 hace 4 años
.eslintrc 9064b372e8 docs:更新文档 hace 4 años
.jscs.json 9064b372e8 docs:更新文档 hace 4 años
.nvmrc 9064b372e8 docs:更新文档 hace 4 años
.travis.yml 9064b372e8 docs:更新文档 hace 4 años
CHANGELOG.md 9064b372e8 docs:更新文档 hace 4 años
LICENSE 9064b372e8 docs:更新文档 hace 4 años
Makefile 9064b372e8 docs:更新文档 hace 4 años
README.md 9064b372e8 docs:更新文档 hace 4 años
index.js 9064b372e8 docs:更新文档 hace 4 años
package.json 9064b372e8 docs:更新文档 hace 4 años

README.md

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