> On 21.7.2015, at 15:09, Domenic Denicola <[email protected]> wrote: > > For maps you can just do > > ```js > const [[k1, v1], [k2, v2], ...rest] = map.entries(); > ``` > > There is no need to add more complexity to object destructuring (which should > only be used for objects and their string keys).
Could you please explain it on example?
Let’s say I have
```
let book = Map{author: {name: “John”, surname: “Doe”}, birthdate: “10-10-1990”};
```
How would you extract `birthdate`? How would you extract `name`?
Thanks,
Samuel
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

