jQuery の is をつかえば matches のようなことができることを教えてもらいました。
JavaScript
(function(win, doc, $) { "use strict"; console.log(doc.getElementById("hello").matches(".world")); // => true console.log($("#hello").is(".world")); // => true console.log(doc.getElementById("hello").matches("div")); // => true console.log($("#hello").is("div")); // => true })(this, document, $);