Get currently destructured object

Bob Myers rtm at gol.com
Fri May 20 04:23:17 UTC 2016


Although I agree this is somewhere between unnecessary and undesirable, it
does raise a semi-valid related point that there's no way to make a
destructured parameter `const`.

```js
function foo({const a, const b}) { ... }

function foo(o) {
  const {a, b} = o;
}
```

Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160520/f000328d/attachment.html>


More information about the es-discuss mailing list