Having a non-enumerable Array.prototype.contains may not be web-compatible

Rick Waldron waldron.rick at gmail.com
Tue Sep 30 16:50:35 PDT 2014


On Tue, Sep 30, 2014 at 6:04 PM, Jason Orendorff <jason.orendorff at gmail.com>
wrote:

> On Tue, Sep 30, 2014 at 1:45 PM, Michał Wadas <michalwadas at gmail.com>
> wrote:
> > Bug in MooTools is not a reason to make any method of Array.prototype
> > enumerable.
>
> Well -- true, that would break even more sites.
>
> We're backing out Array#contains() for now. It's disappointing to me
> personally -- that was a volunteer contribution. In the long run,
> perhaps renaming it is the best course? :-\
>

Unfortunately, it's named to match String.prototype.contains and Domenic
made strong cases in his proposal and presentation for `contains` over
alternatives

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


More information about the es-discuss mailing list