JSPM

  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q66523F
  • License MIT

Updates values based on map function.

Package Exports

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

Readme

Updates values based on map function.

This is part of package extra-iterable.

iterable.map(x, fn, [ths]);
// x:   an iterable
// fn:  map function (v, i, x)
// ths: this argument
const iterable = require('extra-iterable');

var x = [1, 2, 3, 4];
[...iterable.map(x, v => v * 2)];
// [2, 4, 6, 8]

references