mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-11-29 02:45:23 +01:00
13 lines
177 B
JavaScript
13 lines
177 B
JavaScript
'use strict'
|
|
|
|
function fib (num) {
|
|
var fib = []
|
|
|
|
fib[0] = 0
|
|
fib[1] = 1
|
|
for (var i = 2; i <= num; i++) {
|
|
fib[i] = fib[i - 2] + fib[i - 1]
|
|
}
|
|
}
|
|
|
|
module.exports = fib
|