fix naming

This commit is contained in:
Stefan Feješ
2017-12-17 15:41:31 +01:00
parent 8cea052bb1
commit b848906fe5
73 changed files with 18 additions and 18 deletions

View File

@ -1,9 +0,0 @@
### Initialize array with values
Use `Array(n)` to create an array of the desired length, `fill(v)` to fill it with the desired values.
You can omit `value` to use a default value of `0`.
```js
const initializeArray = (n, value = 0) => Array(n).fill(value);
// initializeArray(5, 2) -> [2,2,2,2,2]
```