update snippets 47-62

This commit is contained in:
Stefan Feješ
2017-12-25 14:16:05 +01:00
committed by Agamemnon Zorbas
parent 1c73c70b4a
commit 32fa5a9773
15 changed files with 65 additions and 22 deletions

View File

@ -6,5 +6,8 @@ Use `Array.map()` to generate h rows where each is a new array of size w initial
```js
const initialize2DArray = (w, h, val = null) => Array(h).fill().map(() => Array(w).fill(val));
// initializeArrayWithRange(2, 2, 0) -> [[0,0], [0,0]]
```
```js
initializeArrayWithRange(2, 2, 0) -> [[0,0], [0,0]]
```