Array.prototype.contains

C. Scott Ananian ecmascript at cscott.net
Thu Mar 6 15:45:04 PST 2014


And don't forget the related `DOMTokenList`, which is in
Element.classList and thus used by everyone always.

The `contains` and `item` methods are in `DOMTokenList`, so they
probably shouldn't be removed from `DOMStringList`.  But I don't think
anyone was seriously proposing that, just that `DOMStringList` would
be a subclass of `Array`...  (and maybe `DOMTokenList` would also be
related to `Array`?)
 --scott


More information about the es-discuss mailing list