# Proposal idea: binding object/array and properties/elements in function argument at the same time

**URL:** <https://es.discourse.group/t/proposal-idea-binding-object-array-and-properties-elements-in-function-argument-at-the-same-time/472>\
**Category:** 🦋 Proposals\
**Created:** [September 18, 2020, 7:37pm UTC](https://es.discourse.group/t/proposal-idea-binding-object-array-and-properties-elements-in-function-argument-at-the-same-time/472 "2020-09-18T19:37:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![esp](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/esp/32/439_2.png) [@esp](https://es.discourse.group/u/esp)\
**Post date:** [September 19, 2020, 7:25am UTC](https://es.discourse.group/t/proposal-idea-binding-object-array-and-properties-elements-in-function-argument-at-the-same-time/472/3 "2020-09-19T07:25:58Z")

</div>

Yes - missed it!  
Syntax aside, it solves the same problem, in a more verbose way though (and may clash with "as" in typescript...).

On syntax, it's

```javascript
const {x: {y} as x} = {x: {y: 1}} // in the proposal

```

vs

```javascript
const {x.{y}} = {x: {y: 1}}

```

Having a bigger thing in front of smaller matches the rest of the syntax, "as" looked a bit confusing at first. We can get used to either of course. Should I put the comment there?

Thank you!

---

_[View the full topic](https://es.discourse.group/t/proposal-idea-binding-object-array-and-properties-elements-in-function-argument-at-the-same-time/472)._
