Array.prototype.contains

Mathias Bynens mathiasb at opera.com
Wed Mar 5 22:37:54 PST 2014


On 5 Mar 2014, at 17:19, Domenic Denicola <domenic at domenicdenicola.com> wrote:

> Personally I think the more useful model to follow than `String.prototype.contains` is `Set.prototype.has`.

But then DOM4 `DOMStringList` would still have its own `contains` _and_ the `has` it inherits from `Array.prototype`. That seems confusing, no?


More information about the es-discuss mailing list