zpwiki/pages/students/2016/jan_holp/dp2021/dp2021 zdrojove subory/node_modules/is-generator-function/README.md
2020-11-28 17:25:52 +00:00

1.5 KiB

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