get_child_routes() — svelte Function Reference
Architecture documentation for the get_child_routes() function in download.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 49fcbc38_304d_ca78_d0ee_358275ad2d49["get_child_routes()"] 65d20932_41e6_eeee_7338_5dd0682e5e42["download.js"] 49fcbc38_304d_ca78_d0ee_358275ad2d49 -->|defined in| 65d20932_41e6_eeee_7338_5dd0682e5e42 04de3495_cffc_dc6d_e930_d1c6d03a3a34["convert_sveltekit_project()"] 04de3495_cffc_dc6d_e930_d1c6d03a3a34 -->|calls| 49fcbc38_304d_ca78_d0ee_358275ad2d49 style 49fcbc38_304d_ca78_d0ee_358275ad2d49 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playgrounds/sandbox/scripts/download.js lines 331–346
function get_child_routes(routes, parent_route) {
const children = [];
for (const route of routes.keys()) {
if (route === parent_route) continue;
const parent_prefix = parent_route === '' ? '' : parent_route + '/';
if (
parent_route === ''
? !route.includes('/')
: route.startsWith(parent_prefix) && !route.slice(parent_prefix.length).includes('/')
) {
children.push(route);
}
}
return children;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does get_child_routes() do?
get_child_routes() is a function in the svelte codebase, defined in playgrounds/sandbox/scripts/download.js.
Where is get_child_routes() defined?
get_child_routes() is defined in playgrounds/sandbox/scripts/download.js at line 331.
What calls get_child_routes()?
get_child_routes() is called by 1 function(s): convert_sveltekit_project.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free