Home / Function/ fib() — svelte Function Reference

fib() — svelte Function Reference

Architecture documentation for the fib() function in mol.bench.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  f93e119f_8e21_2fd9_1e5f_9f84530a8f4a["fib()"]
  569e0aad_ad7d_e7b4_e29b_710d73452387["mol.bench.js"]
  f93e119f_8e21_2fd9_1e5f_9f84530a8f4a -->|defined in| 569e0aad_ad7d_e7b4_e29b_710d73452387
  129643e0_0785_f5fc_c81e_2024c462e635["hard()"]
  129643e0_0785_f5fc_c81e_2024c462e635 -->|calls| f93e119f_8e21_2fd9_1e5f_9f84530a8f4a
  style f93e119f_8e21_2fd9_1e5f_9f84530a8f4a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarking/benchmarks/reactivity/tests/mol.bench.js lines 7–10

function fib(n) {
	if (n < 2) return 1;
	return fib(n - 1) + fib(n - 2);
}

Subdomains

Called By

Frequently Asked Questions

What does fib() do?
fib() is a function in the svelte codebase, defined in benchmarking/benchmarks/reactivity/tests/mol.bench.js.
Where is fib() defined?
fib() is defined in benchmarking/benchmarks/reactivity/tests/mol.bench.js at line 7.
What calls fib()?
fib() is called by 1 function(s): hard.

Analyze Your Own Codebase

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

Try Supermodel Free