it-all
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.6 • Public • Published

    it-all

    Build status Coverage Status Dependencies Status

    Collects all values from an (async) iterable into an array and returns it.

    For when you need a one-liner to collect iterable values.

    Install

    $ npm install --save it-all

    Usage

    const all = require('it-all')
    
    // This can also be an iterator, async iterator, generator, etc
    const values = [0, 1, 2, 3, 4]
    
    const arr = await all(values)
    
    console.info(arr) // 0, 1, 2, 3, 4

    Keywords

    none

    Install

    npm i it-all

    DownloadsWeekly Downloads

    65,254

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    2.88 kB

    Total Files

    7

    Last publish

    Collaborators

    • achingbrain