Need private packages and team management tools?Check out npm Teams »

it-all

1.0.1 • Public • Published

it-all

Build status Coverage Status Dependencies Status

Collects all values from an async iterator and returns them as an array

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

3,836

Version

1.0.1

License

ISC

Unpacked Size

82.6 kB

Total Files

26

Last publish

Collaborators

  • avatar