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

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