arr-iterator

    1.0.0 • Public • Published

    arr-iterator

    NPM version License Build status

    An iterator for arrays.

    Installation

    npm install arr-iterator
    

    Usage

    var ArrIterator = require('arr-iterator')
     
    var arr  = ['foo', 'bar', 'baz']
    var iter = new ArrIterator(arr)
     
    iter.next() // => { done: false, value: 'foo' }
    iter.next() // => { done: false, value: 'bar' }
    iter.next() // => { done: false, value: 'baz' }
    iter.next() // => { done: true, value: undefined }

    Install

    npm i arr-iterator

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • gummesson