Array.prototype.last()

Rick Waldron waldron.rick at gmail.com
Tue May 13 12:44:09 PDT 2014


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

> Thanks for the info, Rick
>
> Yeah, I know it's closed, that's why mentioned that then probably for ES7.
> Just thought, the addition is so trivial, that could possibly and easily be
> included to ES6.
>
> Although, taking into account some stylistics questions (getter vs method,
> and the name), probably it's not that trivial, and would require time to
> discuss. So, yeah, a detailed proposal seems is better way to go.
>

The get accessor approach is nice, I prefer it to the method version.

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


More information about the es-discuss mailing list