function isNodeOneOf(elem, nodeTypeArray) {
      return nodeTypeArray.indexOf(elem.nodeName) !== -1;
    }
Utility function to filter out raw DOM nodes.
@param {Node} elem
@param {string[]} nodeTypeArray
@returns {boolean}