Array.prototype.contains

Boris Zbarsky bzbarsky at MIT.EDU
Wed Mar 5 05:48:33 PST 2014


On 3/5/14 7:04 AM, Sebastian Zartner wrote:
> Why not? A use case would be to check whether a specific node is within
> a NodeList.

NodeLists don't have have Array.prototype on their proto chain in 
browsers at the moment, and might never get there; there are compat 
concerns.

I'd love to get rid of DOMStringList, though.

-Boris


More information about the es-discuss mailing list