update snippets 62-78

This commit is contained in:
Stefan Feješ
2017-12-25 14:23:06 +01:00
parent 16b3984591
commit 55bc1ec632
16 changed files with 78 additions and 33 deletions

View File

@ -7,5 +7,8 @@ You can omit `value` to use a default value of `0`.
```js
const initializeArrayWithValues = (n, value = 0) => Array(n).fill(value);
// initializeArrayWithValues(5, 2) -> [2,2,2,2,2]
```
```js
initializeArrayWithValues(5, 2) -> [2,2,2,2,2]
```