{ } qjs-modules

extendGenerator

Source: lib/extendGenerator.js (pure JS) — default export: extendGenerator

Installs extra methods onto the generator prototype.

Exports

ExportArgsKindDescription
extendGenerator(proto=GeneratorPrototype)0–1functionInstalls the extensions. (default export)
GeneratorExtensions—constThe bag of methods that get installed.
GeneratorPrototype, Generator—constThe generator prototype and its constructor.

Added generator methods

includes(value) — and other lazy iteration helpers operating over the generator's yielded values.

Export list

Generated by utilities/doc-api.js from the extendGenerator dump of utilities/api-surface.sh: 16 members. Edit the text above this block, not the block.

Functions: GeneratorPrototype[Symbol.toStringTag](), Generator[Symbol.toStringTag](), default(), extendGenerator()

Generator

class

  • properties:

GeneratorExtensions

object

  • static methods: chain(), chainAll(), enumerate(), includes(), range()

GeneratorPrototype

object

  • static methods: next(), return(), throw()