# dot operator destructuring assignment

**URL:** <https://es.discourse.group/t/dot-operator-destructuring-assignment/527>\
**Category:** 💡 Ideas\
**Created:** [November 5, 2020, 5:47pm UTC](https://es.discourse.group/t/dot-operator-destructuring-assignment/527 "2020-11-05T17:47:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seekr3](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/seekr3/32/476_2.png) [@seekr3](https://es.discourse.group/u/seekr3)\
**Post date:** [November 5, 2020, 5:47pm UTC](https://es.discourse.group/t/dot-operator-destructuring-assignment/527/1 "2020-11-05T17:47:01Z")

</div>

#### Proposal: [https://github.com/tc39/proposal-](https://github.com/tc39/proposal-)`{{Abram Bradley}}`

if I have a nested object like this:

```javascript
const data = { x: { y: { z: 'data' } } }

```

to destructure a very deeply nested property you have to do this:

```javascript
const { x: { y: { z } } } = data

```

would be nice if you could do this:

```javascript
const { x.y.z } = data

```

or for data:

```javascript
const data = { x: { y: { z: 'data' }, y2: 'data' } }

```

this:

```javascript
const { x: { y.z, y2 } } = data

```
