Array comprehensions with Spread operator

Tab Atkins Jr. jackalmage at
Wed Apr 15 16:34:17 UTC 2015

On Wed, Apr 15, 2015 at 9:31 AM, Jeremy Martin <jmar777 at> wrote:
> Why not just `[...x, ...y]`?

Obviously that's a solution to the trivial example that monolithed
provided, but it's not a solution to the more general problem he's
alluding to, where you're doing a comprehension and want to insert two
or more elements into the result in a single iteration.


More information about the es-discuss mailing list