Why not just `[...x, ...y]`? On Wed, Apr 15, 2015 at 12:23 PM, monolithed <[email protected]> wrote:
> ```js > let x = [0, 1, 2]; > let y = [3, 4, 5]; > > > // Expected > [ for (i of [x, y]) ...i ]; > > > // Reality > Array.prototype.concat(...[ for (x of [x, y]) i ]); > > > // Result > [0, 1, 2, 3, 4, 5] > ``` > > Is there any discussion on this subject? > > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > > -- Jeremy Martin 661.312.3853 http://devsmash.com @jmar777
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

