Array.prototype.removeAt(index); Array.prototype.remove(element);
On Wed, Jul 23, 2014 at 3:12 PM, Alex Vincent <[email protected]> wrote: > On Wed, Jul 23, 2014 at 11:18 AM, <[email protected]> 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 > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

