dmitry.soshnikov at gmail.com
Tue May 13 11:54:12 PDT 2014
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
Will it make sense to add it now to ES6?
For consistency with Object.keys(), it could be exactly a function, not a
For correlation with entries.length, it could be the getter, yes
Both work well, just need to peek more practical.
The pop() is similar, but removes the element.
(the issue was discussed before, not sure whether it was decided not to
include it, or was it's just forgotten - don't see it in the draft, but
seems the useful thing: if not for ES6, probably for ES7)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss