type DOMElement = Window | Document | Element export default function domToArray(els: T | T[]): R[];