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

spread_props_handler.ownKeys() — svelte Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/svelte/src/internal/client/reactivity/props.js lines 239–257

	ownKeys(target) {
		/** @type {Array<string | symbol>} */
		const keys = [];

		for (let p of target.props) {
			if (is_function(p)) p = p();
			if (!p) continue;

			for (const key in p) {
				if (!keys.includes(key)) keys.push(key);
			}

			for (const key of Object.getOwnPropertySymbols(p)) {
				if (!keys.includes(key)) keys.push(key);
			}
		}

		return keys;
	}

Domain

Subdomains

Frequently Asked Questions

What does spread_props_handler.ownKeys() do?
spread_props_handler.ownKeys() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/reactivity/props.js.
Where is spread_props_handler.ownKeys() defined?
spread_props_handler.ownKeys() is defined in packages/svelte/src/internal/client/reactivity/props.js at line 239.
What does spread_props_handler.ownKeys() call?
spread_props_handler.ownKeys() 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