@extra-array/reject-at
v2.10.19
Published
Discards values at given indices.
Downloads
68
Maintainers
Readme
Discards values at given indices. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
Alternatives: reject, reject$, rejectAt. Similar: map, filter, reject, reduce, accumulate.
This is part of package extra-array.
array.rejectAt(x, is);
// x: an array
// is: indices
const array = require("extra-array");
var x = [2, 4, 6, 8];
array.rejectAt(x, [1, 2]);
// [ 2, 8 ]
array.rejectAt(x, [1, 3]);
// [ 2, 6 ]