Array.prototype.contains

Michael Haufe tno at thenewobjective.com
Wed Jul 23 14:00:49 PDT 2014


Array.prototype.removeAt(index);
Array.prototype.remove(element);



On Wed, Jul 23, 2014 at 3:12 PM, Alex Vincent <ajvincent at gmail.com> wrote:

> 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
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140723/ec87883f/attachment.html>


More information about the es-discuss mailing list