Skip to content

ljharb/make-generator-function

Repository files navigation

make-generator-function Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Returns an array of arbitrary generator functions, which will be empty if generator syntax is unsupported.

Example

var generatorFunctions = require('make-async-generator-function');
assert(typeof generatorFunctions === 'function');

var funcs = generatorFunctions();
assert(Array.isArray(funcs), true);

Tests

Simply clone the repo, npm install, and run npm test

About

Returns an arbitrary generator function, or undefined if generator syntax is unsupported.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks