Feature proposal

Mike Samuel mikesamuel at gmail.com
Thu Jul 19 15:10:36 UTC 2018


On Thu, Jul 19, 2018 at 8:54 AM Nicolas B. Pierron <
nicolas.b.pierron at mozilla.com> wrote:

> On Wed, Jul 18, 2018 at 6:43 PM, Mike Samuel <mikesamuel at gmail.com> wrote:
> > Reverse is problematic on String.  The index of a codepoint can't be
> > subtracted from String.length since length is not the count of
> codepoints.
>
> Don't take me wrong, I was not suggesting to add a `reverse` property.
> I was suggesting to add the Iteratable object in the prototype chain
> such that someone can implement extra property on the Iteratable /
> Iteratable.prototype object.
>

My mistake.  I assumed a goal was to allow implementing a generic
findLastIndex in
terms of find and reverse iterators.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180719/3b316b10/attachment.html>


More information about the es-discuss mailing list