Array tail destructuring
michael.lee.theriot at gmail.com
Sat Oct 1 14:34:14 UTC 2016
I think this is because there's no universal way of determining when an
iterator ends. The only way this could work for all iterators would require
popping values off of `a` after they've been added.
On Sat, Oct 1, 2016 at 6:17 AM, Cyril Auburtin <cyril.auburtin at gmail.com>
> It was possibly already discussed, but why isn't:
> var [...a, last] = [1,2,3];
> I don't see the problem, as long as there's one ... only
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss