let current = 1
let previous = 0
while (--num) {
- const temp = current
+ const tmp = current
current += previous
- previous = temp
+ previous = tmp
}
return current
}
Benchmark.save({ file: 'fibonacci', format: 'json', details: true }),
Benchmark.save({ file: 'fibonacci', format: 'chart.html', details: true }),
Benchmark.save({ file: 'fibonacci', format: 'table.html', details: true })
-).catch(err => {
- console.error(err)
-})
+).catch(console.error)