astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
15 lines (14 loc) • 374 B
JavaScript
const headAndContentSym = Symbol.for("astro.headAndContent");
export function isHeadAndContent(obj) {
return typeof obj === "object" && obj !== null && !!obj[headAndContentSym];
}
export function createHeadAndContent(head, content) {
return {
[headAndContentSym]: true,
head,
content
};
}
export function createThinHead() {
return { [headAndContentSym]: true };
}