JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 276644
  • Score
    100M100P100Q167705F
  • License ISC

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

Package Exports

  • it-all

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (it-all) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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')

async function * iterator (values) {
  yield * values
}

const arr = await all(iterator([0, 1, 2, 3, 4]))

console.info(arr) // 0, 1, 2, 3, 4