Home / Function/ isHeadAndContent() — astro Function Reference

isHeadAndContent() — astro Function Reference

Architecture documentation for the isHeadAndContent() function in head-and-content.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  d98d04c8_271d_6811_6d73_49788d2bd099["isHeadAndContent()"]
  b955b9a3_eb7b_2879_6051_9e4a371d44c3["head-and-content.ts"]
  d98d04c8_271d_6811_6d73_49788d2bd099 -->|defined in| b955b9a3_eb7b_2879_6051_9e4a371d44c3
  style d98d04c8_271d_6811_6d73_49788d2bd099 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/server/render/astro/head-and-content.ts lines 18–20

export function isHeadAndContent(obj: unknown): obj is HeadAndContent {
	return typeof obj === 'object' && obj !== null && !!(obj as any)[headAndContentSym];
}

Domain

Subdomains

Frequently Asked Questions

What does isHeadAndContent() do?
isHeadAndContent() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/astro/head-and-content.ts.
Where is isHeadAndContent() defined?
isHeadAndContent() is defined in packages/astro/src/runtime/server/render/astro/head-and-content.ts at line 18.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free