Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return names.some((name) => {
return domutils.getName(node) === name
})
}
function isName (element, names) {
var tagname = DOM.getName(element);
return names.indexOf(tagname) >= 0;
}