@extra-array/filter-at.min
TypeScript icon, indicating that this package has built-in type declarations

2.10.19 • Public • Published

Keeps values at given indices only. 📦 😺 🏃 📼 🌔 📜 📰 📘

Alternatives: filter, filter$, filterAt.
Similar: map, filter, reject, reduce, accumulate.

This is part of package extra-array.

This is browserified, minified version of @extra-array/filter-at.
It is exported as global variable array_filterAt.
CDN: unpkg, jsDelivr.


array.filterAt(x, is);
// x:  an array (updated)
// is: indices (sorted)
// → x
const array = require("extra-array");

var x = [2, 4, 6, 8];
array.filterAt(x, [1, 2]);
// [ 4, 6 ]

array.filterAt(x, [1, 3]);
// [ 4, 8 ]


References

Package Sidebar

Install

npm i @extra-array/filter-at.min

Weekly Downloads

0

Version

2.10.19

License

MIT

Unpacked Size

5.26 kB

Total Files

8

Last publish

Collaborators

  • wolfram77