MCPcopy Create free account
hub / github.com/npkgz/cli-progress / fibonacci

Function fibonacci

examples/example-synchronous.js:5–11  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

3// long running, recursive function (blocking operation)
4// well it's no optimized and not for productive use but it's an easy way to implement a long-running & blocking operation without third-party modules
5function fibonacci(n) {
6 if (n < 2) {
7 return 1;
8 }else {
9 return fibonacci(n - 2) + fibonacci(n - 1);
10 }
11}
12
13function runSinglebar(options, limit){
14 // create new progress bar using default values

Callers 2

runSinglebarFunction · 0.85
runMultibarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…