Home / Function/ spread_props_handler.has() — svelte Function Reference

spread_props_handler.has() — svelte Function Reference

Architecture documentation for the spread_props_handler.has() function in props.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  ea0d95f6_c610_efd3_d1fe_703fc22cb2fa["spread_props_handler.has()"]
  5094c0e2_0832_85dc_9c83_43e20571b709["props.js"]
  ea0d95f6_c610_efd3_d1fe_703fc22cb2fa -->|defined in| 5094c0e2_0832_85dc_9c83_43e20571b709
  cf9fafcc_74cf_96c6_92b8_d5c64c62efa0["is_function()"]
  ea0d95f6_c610_efd3_d1fe_703fc22cb2fa -->|calls| cf9fafcc_74cf_96c6_92b8_d5c64c62efa0
  style ea0d95f6_c610_efd3_d1fe_703fc22cb2fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/reactivity/props.js lines 228–238

	has(target, key) {
		// To prevent a false positive `is_entry_props` in the `prop` function
		if (key === STATE_SYMBOL || key === LEGACY_PROPS) return false;

		for (let p of target.props) {
			if (is_function(p)) p = p();
			if (p != null && key in p) return true;
		}

		return false;
	},

Domain

Subdomains

Frequently Asked Questions

What does spread_props_handler.has() do?
spread_props_handler.has() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/reactivity/props.js.
Where is spread_props_handler.has() defined?
spread_props_handler.has() is defined in packages/svelte/src/internal/client/reactivity/props.js at line 228.
What does spread_props_handler.has() call?
spread_props_handler.has() calls 1 function(s): is_function.

Analyze Your Own Codebase

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

Try Supermodel Free