# Inverse Rest Operator

**URL:** <https://es.discourse.group/t/inverse-rest-operator/1973>\
**Category:** 🦋 Proposals\
**Created:** [March 28, 2024, 9:52pm UTC](https://es.discourse.group/t/inverse-rest-operator/1973 "2024-03-28T21:52:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlanckItDev](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/planckitdev/32/2046_2.png) [@PlanckItDev](https://es.discourse.group/u/PlanckItDev)\
**Post date:** [March 28, 2024, 9:52pm UTC](https://es.discourse.group/t/inverse-rest-operator/1973/1 "2024-03-28T21:52:28Z")

</div>

const fn = (...a, c, d) =\> {  
console.log(a); // [a, b]  
};

fn(a, b, c, d);

---

<div class="post-metadata">

**Author:** ![aclaymore](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/aclaymore/32/501_2.png) [@aclaymore](https://es.discourse.group/u/aclaymore)\
**Post date:** [March 29, 2024, 5:09am UTC](https://es.discourse.group/t/inverse-rest-operator/1973/2 "2024-03-29T05:09:18Z")

</div>

Existing topic: [Possibility to destructure last item from Array](https://es.discourse.group/t/possibility-to-destructure-last-item-from-array/1128)

---

<div class="post-metadata">

**Author:** ![ljharb](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/ljharb/32/8_2.png) [@ljharb](https://es.discourse.group/u/ljharb)\
**Post date:** [March 29, 2024, 6:10am UTC](https://es.discourse.group/t/inverse-rest-operator/1973/3 "2024-03-29T06:10:21Z")

</div>

A tip: if you want to be effective, please don't just throw syntax over the wall; if you have a proposal idea, start with describing the problem it's solving, and _then_ suggest a potential solution.

---

<div class="post-metadata">

**Author:** ![PlanckItDev](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/planckitdev/32/2046_2.png) [@PlanckItDev](https://es.discourse.group/u/PlanckItDev)\
**Post date:** [March 31, 2024, 12:50am UTC](https://es.discourse.group/t/inverse-rest-operator/1973/4 "2024-03-31T00:50:27Z")

</div>

Thanks, missed that
