0.1.3 • Published 7 years ago

lists-map v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

lists-map

NOTE: lists-map was renamed to @extra-lists/map. NPM

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

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

a = ['leap', 'anrgy', 'flood'];
map([a.keys(), a], (v) => v+'frog');
// [[0, 1, 2], ['leapfrog', 'angryfrog', 'floodfrog']]
a = {w1: 'swim', w2: 'yonder', w3: 'point'};
map([Object.keys(a), Object.values(a)], (v, i, lst) => v+'tiber');
// [['w1', 'w2', 'w3'], ['swimtiber', 'yondertiber', 'pointtiber']]
0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago