Home / Function/ has() — astro Function Reference

has() — astro Function Reference

Architecture documentation for the has() function in runtime.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  8a9e92da_c3c2_384b_2d6b_b1eec8e95109["has()"]
  91969197_292d_3b15_21c6_0e876968e961["AstroSession"]
  8a9e92da_c3c2_384b_2d6b_b1eec8e95109 -->|defined in| 91969197_292d_3b15_21c6_0e876968e961
  8249bedb_c4c6_d6ed_cd7e_2f629ae41af9["storage()"]
  8249bedb_c4c6_d6ed_cd7e_2f629ae41af9 -->|calls| 8a9e92da_c3c2_384b_2d6b_b1eec8e95109
  6a37e7b5_7d47_0edc_22a0_f1b1f4a991bb["AstroSession()"]
  6a37e7b5_7d47_0edc_22a0_f1b1f4a991bb -->|calls| 8a9e92da_c3c2_384b_2d6b_b1eec8e95109
  style 8a9e92da_c3c2_384b_2d6b_b1eec8e95109 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/session/runtime.ts lines 126–128

	async has(key: string): Promise<boolean> {
		return (await this.#ensureData()).has(key);
	}

Domain

Subdomains

Frequently Asked Questions

What does has() do?
has() is a function in the astro codebase, defined in packages/astro/src/core/session/runtime.ts.
Where is has() defined?
has() is defined in packages/astro/src/core/session/runtime.ts at line 126.
What calls has()?
has() is called by 2 function(s): AstroSession, storage.

Analyze Your Own Codebase

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

Try Supermodel Free