16 lines
332 B
Plaintext
16 lines
332 B
Plaintext
const headAndContentSym = Symbol.for("astro.headAndContent");
|
|
function isHeadAndContent(obj) {
|
|
return typeof obj === "object" && !!obj[headAndContentSym];
|
|
}
|
|
function createHeadAndContent(head, content) {
|
|
return {
|
|
[headAndContentSym]: true,
|
|
head,
|
|
content
|
|
};
|
|
}
|
|
export {
|
|
createHeadAndContent,
|
|
isHeadAndContent
|
|
};
|