Array.prototype.last()

Rick Waldron waldron.rick at gmail.com
Tue May 13 12:16:10 PDT 2014


I agree, this is a reasonable addition, however:


On Tue, May 13, 2014 at 2:54 PM, Dmitry Soshnikov <
dmitry.soshnikov at gmail.com> wrote:

> Hi,
>
> Exactly at the moment I'm writing too many of
>
>   entries[entries.length - 1]
>
> where `entries` is an array (with of course moving to a helper
> function/prototype method).
>
> Will it make sense to add it now to ES6?
>

No, ES6 is closed for all new features—but you should absolutely write up a
proposal (gist is fine, here are examples:
https://gist.github.com/rwaldron/11186883,
https://gist.github.com/WebReflection/9353781) and submit a PR to:
https://github.com/tc39/ecma262

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140513/2cfac393/attachment.html>


More information about the es-discuss mailing list