1 2 3 4 5 6 7
function nodeName( elem, name ) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); }; export default nodeName;