Current section
Files
Jump to
Current section
Files
src/document.mjs
const ofNode = (node) => {
return node instanceof Document ? node : null;
};
const cDocument = () => document;
const body = (doc) => doc.body;
const createElement = (doc, tagName) => doc.createElement(tagName);
const createAnchorElement = (doc) => doc.createElement("a");
export {
body,
cDocument,
createAnchorElement,
createElement,
ofNode
};