bind_props() — svelte Function Reference
Architecture documentation for the bind_props() function in index.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 467b4fa1_3448_87a3_e3ff_db542bed503e["bind_props()"] 1c4bc493_24af_177e_7307_a999997aceac["index.js"] 467b4fa1_3448_87a3_e3ff_db542bed503e -->|defined in| 1c4bc493_24af_177e_7307_a999997aceac style 467b4fa1_3448_87a3_e3ff_db542bed503e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/server/index.js lines 378–390
export function bind_props(props_parent, props_now) {
for (const key in props_now) {
const initial_value = props_parent[key];
const value = props_now[key];
if (
initial_value === undefined &&
value !== undefined &&
Object.getOwnPropertyDescriptor(props_parent, key)?.set
) {
props_parent[key] = value;
}
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does bind_props() do?
bind_props() is a function in the svelte codebase, defined in packages/svelte/src/internal/server/index.js.
Where is bind_props() defined?
bind_props() is defined in packages/svelte/src/internal/server/index.js at line 378.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free