Travis build: 89

This commit is contained in:
Pl4gue
2017-12-22 08:28:29 +00:00
parent c2520fd9ef
commit bcea44bcd8
2 changed files with 2 additions and 2 deletions

View File

@ -1278,7 +1278,7 @@ Use `Array.reduce()` to add values into the array, using the sum of the last two
```js
const fibonacci = n =>
Array.from({ length: n}).map(v => 0).reduce((acc, val, i) => acc.concat(i > 1 ? acc[i - 1] + acc[i - 2] : i), []);
Array.from({ length: n}).reduce((acc, val, i) => acc.concat(i > 1 ? acc[i - 1] + acc[i - 2] : i), []);
// fibonacci(5) -> [0,1,1,2,3]
```