Miss any of our Open RFC calls?Watch the recordings here! »

@extra-object/filter-at-update.min

2.2.3 • Public • Published

Gets object with given keys. 🏃 📼 📦 🌔 📒

Alternatives: filterAt, filterAt$.
Similar: map, reduce, filter, filterAt, reject, rejectAt.
This is part of package extra-object.

This is browserified, minified version of @extra-object/filter-at-update.
It is exported as global variable object_filterAt$.
CDN: unpkg, jsDelivr.

object.filterAt$(x, ks);
// x:  an object (updated)
// ks: keys
// --> x
const object = require('extra-object');
 
var x = {a: 1, b: 2, c: 3, d: 4, e: 5};
object.filterAt$(x, ['a', 'c', 'e']);
// { a: 1, c: 3, e: 5 }
 
x;
// { a: 1, c: 3, e: 5 }
 
var x = {a: 1, b: 2, c: 3, d: 4, e: 5};
object.filterAt$(x, ['b', 'd']);
// { b: 2, d: 4 }

references

Install

npm i @extra-object/filter-at-update.min

DownloadsWeekly Downloads

85

Version

2.2.3

License

MIT

Unpacked Size

6.19 kB

Total Files

9

Last publish

Collaborators

  • avatar