1.0.4 • Published 9 years ago

genutil v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Build Status

genutil

Utilities for dealing with ES6 generators.

API

isGenerator(Object) -> Boolean

Returns true if argument is a Generator, false otherwise. Supports regenerator.

isGeneratorProto(Object) -> Boolean

Returns true if argument is a GeneratorPrototype, false otherwise. A GeneratorPrototype is produced when a generator is invoked. Supports regenerator.

*resolve(Object) -> Object

Yield to argument and return result if possible. Otherwise return the argument. Useful when you don't know if the provided value is a generator or not.

License

MIT

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago