Skip to content
Subhajit Sahu edited this page Feb 4, 2021 · 17 revisions

Updates values based on map function. 🏃 📼 📦 🌔 📒

Similar: map, reduce, filter, filterAt, reject, rejectAt.


lists.map(x, fm);
// x:  lists
// fm: map function (v, k, x)
const lists = require('extra-lists');

var x = [['a', 'b', 'c', 'd'], [1, 2, 3, 4]];
lists.map(x, v => v * 2);
// [ [ 'a', 'b', 'c', 'd' ], [ 2, 4, 6, 8 ] ]


References

Clone this wiki locally