Sebastian Zartner (2014-03-05T12:04:37.000Z)
domenic at domenicdenicola.com (2014-03-20T16:07:28.045Z)
> The DOM won't inherit from it directly, shall it? Why not? A use case would be to check whether a specific node is within a NodeList. > `.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. While `.indexOf()` just gets you the index of one item, `.contains()` could even be extended to allow to check whether an array contains several items. E.g. ```js .contains([1, 2, 3], [1, 3]) // true .contains([1, 2, 3], [1, 4]) // false ```