David Bruant (2014-03-05T09:07:58.000Z)
domenic at domenicdenicola.com (2014-03-20T16:06:00.352Z)
Le 05/03/2014 09:24, Eric Elliott a écrit : > What ever happened to Array.prototype.contains? Let's try to add it to the next meeting agenda https://github.com/tc39/agendas/pull/27 > it seemed like it was desirable for DOM. The DOM won't inherit from it directly, shall it? > I predict code like this without it: > > ```js > ''.contains.call([1,2,3],2);// true > ``` `.indexOf === -1` works today for this use case and will continue to. I'd be happy to see `!~arr.indexOf(el)` disappear in favor of a use of `.contains()` though.