Array.prototype.contains

Alex Vincent ajvincent at gmail.com
Wed Jul 23 13:12:24 PDT 2014


On Wed, Jul 23, 2014 at 11:18 AM, <es-discuss-request at mozilla.org> wrote:

> So too, for cases of removing an item, would Array.prototype.remove(v)
> show clear intent.
>

I would actually raise a concern about that method.  Suppose v shows up in
the array more than once.  Do you remove the first appearance, the last, or
all of them?

-- 
"The first step in confirming there is a bug in someone else's work is
confirming there are no bugs in your own."
-- Alexander J. Vincent, June 30, 2001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140723/72d522cf/attachment.html>


More information about the es-discuss mailing list