export default function isDocument(element) {
return 'nodeType' in element && element.nodeType === document.DOCUMENT_NODE;
}