0.1.3 • Published 6 years ago

lists-map v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 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

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