There was an error while loading. Please reload this page.
Keep entries with given keys.
Similar: map, reduce, filter, filterAt, reject, rejectAt.
function filterAt(x, ks) // x: lists // ks: keys
const xlists = require('extra-lists'); var x = [['a', 'b', 'c', 'd', 'e'], [1, 2, 3, 4, 5]]; xlists.filterAt(x, ['a', 'c', 'e']); // → [ [ 'a', 'c', 'e' ], [ 1, 3, 5 ] ] xlists.filterAt(x, ['b', 'd']); // → [ [ 'b', 'd' ], [ 2, 4 ] ]