Array tail destructuring

Jason Orendorff jason.orendorff at gmail.com
Tue Oct 4 13:33:56 UTC 2016


On Tue, Oct 4, 2016 at 7:12 AM, Cyril Auburtin <cyril.auburtin at gmail.com>
wrote:

> I didn't understand everything discussed above, but to me, the only
> asymmetry between head and tail destructuring is for infinite iterators:
>
> `var [x] = neverEndingIterator` vs `var [...a, x] = neverEndingIterator //
> fails`
>

Read the post just before yours. Caitlin pointed out another difference.

-j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161004/6aad4266/attachment.html>


More information about the es-discuss mailing list