@f/is-iterator

Check if iterator.

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/is-iterator
001.0.16 years ago6 years agoMinified + gzip package size for @f/is-iterator in KB

Readme

is-iterator

Build status Git tag NPM version Code style

Check if iterator.

Installation

$ npm install @f/is-iterator

Usage

var isIterator = require('@f/is-iterator')

isIterator((function * () {})()) // => true

API

isIterator(obj, strict)

  • obj - object to check for iterator interface
  • strict - when strict is true throw is required in addition to next

Returns: boolean indicating if iterator

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.