@extra-lists/reject-at

Gets lists without given keys. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Usage no npm install needed!

<script type="module">
  import extraListsRejectAt from 'https://cdn.skypack.dev/@extra-lists/reject-at';
</script>

README

Gets lists without given keys. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

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

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