@extra-array/reject-at
Version:
Discards values at given indices.
52 lines (38 loc) • 1.52 kB
Markdown
Discards values at given indices.
[:package:](https://www.npmjs.com/package/@extra-array/reject-at)
[:smiley_cat:](https://github.com/orgs/nodef/packages?repo_name=extra-array)
[:running:](https://npm.runkit.com/@extra-array/reject-at)
[:vhs:](https://asciinema.org/a/339803)
[:moon:](https://www.npmjs.com/package/@extra-array/reject-at.min)
[:scroll:](https://unpkg.com/@extra-array/reject-at/)
[:newspaper:](https://nodef.github.io/extra-array/)
[:blue_book:](https://github.com/nodef/extra-array/wiki/)
> Alternatives: [reject], [reject$], [rejectAt].<br>
> Similar: [map], [filter], [reject], [reduce], [accumulate].
> This is part of package [extra-array].
[extra-array]: https://www.npmjs.com/package/extra-array
<br>
```javascript
array.rejectAt(x, is);
// x: an array
// is: indices
```
```javascript
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 ]
```
<br>
<br>
## References
- [iterableList.get: Java](https://docs.oracle.com/javase/7/docs/api/java/util/iterableList.html#get(int))
[reject]: https://github.com/nodef/extra-array/wiki/reject
[reject$]: https://github.com/nodef/extra-array/wiki/reject$
[rejectAt]: https://github.com/nodef/extra-array/wiki/rejectAt
[map]: https://github.com/nodef/extra-array/wiki/map
[filter]: https://github.com/nodef/extra-array/wiki/filter
[reduce]: https://github.com/nodef/extra-array/wiki/reduce
[accumulate]: https://github.com/nodef/extra-array/wiki/accumulate