Ben Fletcher (2018-05-23T16:34:48.000Z)
Does the `[...oldArr, ...elementsToPushArr]` pattern take care of that for
you? I've always assumed it's much less performant than your form would be,
but I (naively) suppose the implementation could be optimized like anything
else

On Wed, May 23, 2018 at 8:01 AM <es-discuss-request at mozilla.org> wrote:

> Send es-discuss mailing list submissions to
>         es-discuss at mozilla.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.mozilla.org/listinfo/es-discuss
> or, via email, send a message with subject or body 'help' to
>         es-discuss-request at mozilla.org
>
> You can reach the person managing the list at
>         es-discuss-owner at mozilla.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of es-discuss digest..."
> Today's Topics:
>
>    1. Array.prototype.append ? (Jordi Bunster)
>
>
>
> ---------- Forwarded message ----------
> From: Jordi Bunster <jbunster at microsoft.com>
> To: "es-discuss at mozilla.org" <es-discuss at mozilla.org>
> Cc:
> Bcc:
> Date: Wed, 23 May 2018 02:45:25 +0000
> Subject: Array.prototype.append ?
> Has anyone ever suggested Array.prototype.append as an
> Array.prototype.push which returns the array itself? It would be
> reduce-friendly, same as Set.prototype.add and Map.prototype.set.
>
> Someone has to have, right? 😊
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180523/3c2c2cb9/attachment.html>
bfletch at gmail.com (2018-05-23T16:40:20.606Z)
[delete -- appended to wrong thread. Sorry!]