UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

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