UNPKG

extra-dom

Version:
14 lines 383 B
import { isElement } from './is-element.js'; import { isTextNode } from './is-text-node.js'; export function stringify(nodes) { return nodes .map(node => { if (isElement(node)) return node.outerHTML; if (isTextNode(node)) return node.textContent; return ''; }) .join(''); } //# sourceMappingURL=stringify.js.map