1.1.0 • Published 5 months ago

is-generator-function v1.1.0

Weekly downloads
1,826,679
License
MIT
Repository
github
Last release
5 months ago

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

1.1.0

5 months ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

5 years ago

1.0.7

7 years ago

1.0.6

8 years ago

1.0.4

8 years ago

1.0.5

8 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

11 years ago

1.0.0

11 years ago

0.0.0

11 years ago