JSPM

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

Maps the values yielded by an async iterator

Package Exports

  • it-map

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-map) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

it-map

Build status Coverage Status Dependencies Status

Maps the values yielded by an async iterator

Install

$ npm install --save it-map

Usage

const map = require('it-map')

// This can also be an iterator, async iterator, generator, etc
const values = [0, 1, 2, 3, 4]

const result = await map(values, (val) => val++)

console.info(result) // 15