Transform values of entries.
Similar: map, reduce, filter, filterAt, reject, rejectAt.
function map(x, fm) // x: lists // fm: map function (v, k, x)
const xlists = require('extra-lists'); var x = [['a', 'b', 'c', 'd'], [1, 2, 3, 4]]; xlists.map(x, v => v * 2); // → [ [ 'a', 'b', 'c', 'd' ], [ 2, 4, 6, 8 ] ]
There was an error while loading. Please reload this page.