1.1.0 • Published 1 year ago

is-generator-function v1.1.0

Weekly downloads
1,826,679
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

6 years ago

1.0.7

8 years ago

1.0.6

10 years ago

1.0.4

10 years ago

1.0.5

10 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

12 years ago

1.0.0

12 years ago

0.0.0

12 years ago