0.1.5 • Published 6 years ago

iterable-mapx v0.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

iterable-mapx

NPM

Map values in iterable to new values, like Array.map().

DEPRECATED: Please use iterable-mapto instead.

const map = require('iterable-mapx');
// map(<iterable>, <map function>, [this])

map([1, 2, 3], (x) => x*x);
// [1, 4, 9]
map('hello', (x, i) => x+i);
// ['h0', 'e1', 'l2', 'l3', 'o4']
map(new Set().add('teenage').add('mutant'), (x, i, itr) => x.length);
// [7, 6]
0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago