# inline ...rest destructuring through exclude (or some other syntax)

**URL:** <https://es.discourse.group/t/inline-rest-destructuring-through-exclude-or-some-other-syntax/710>\
**Category:** 💡 Ideas\
**Tags:** proposal\
**Created:** [March 21, 2021, 12:36am UTC](https://es.discourse.group/t/inline-rest-destructuring-through-exclude-or-some-other-syntax/710 "2021-03-21T00:36:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![theScottyJam](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/thescottyjam/32/616_2.png) [@theScottyJam](https://es.discourse.group/u/theScottyJam)\
**Post date:** [March 21, 2021, 2:18am UTC](https://es.discourse.group/t/inline-rest-destructuring-through-exclude-or-some-other-syntax/710/2 "2021-03-21T02:18:28Z")

</div>

Related: [Object.prototype.pick / Object.prototype.omit - #32 by aleen42](https://es.discourse.group/t/object-prototype-pick-object-prototype-omit/515/32)

If that gets through, then you could do the following:

```javascript
doRest(Object.omit(obj, ['name', 'year']))

```

---

_[View the full topic](https://es.discourse.group/t/inline-rest-destructuring-through-exclude-or-some-other-syntax/710)._
