@f/is-iterator

    1.0.1 • Public • Published

    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

    Keywords

    none

    Install

    npm i @f/is-iterator

    DownloadsWeekly Downloads

    17

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • f