/ c4f / front / node_modules / is-generator-function /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/8 months ago -  
[TXT]CHANGELOG.md8 months ago 22K 
[   ]LICENSE8 months ago1.1K 
[TXT]README.md8 months ago1.7K 
[   ]index.js8 months ago964  
[   ]package.json8 months ago2.3K 
README.md

is-generator-function Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80