README
Gets lists without given keys. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-lists.
lists.rejectAt(x, ks);
// x: lists
// ks: keys
const lists = require('extra-lists');
var x = [['a', 'b', 'c', 'd', 'e'], [1, 2, 3, 4, 5]];
lists.rejectAt(x, ['a', 'c', 'e']);
// [ [ 'b', 'd' ], [ 2, 4 ] ]
lists.rejectAt(x, ['b', 'd']);
// [ [ 'a', 'c', 'e' ], [ 1, 3, 5 ] ]
References
- Data.List.filter: Haskell
- Array.prototype.filter: MDN web docs
- array_filter: PHP
- _.remove: lodash
- _.without: lodash
- _.compact: lodash
- _.pull: lodash
- _.pullAll: lodash
- _.pullAllBy: lodash
- _.pullAllWith: lodash
- Array.filter: sugarjs
- Array.exclude: sugarjs
- Array.compact: sugarjs
- array-tools.where: @75lb