Merge pull request #1673 from g1tman/patch-2

Use underscore for unused argument
This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-21 20:38:29 +03:00
committed by GitHub

View File

@ -12,7 +12,7 @@ Initializes an array containing the numbers in the specified range where `start`
```js
const initializeArrayWithRange = (end, start = 0, step = 1) =>
Array.from({ length: Math.ceil((end - start + 1) / step) }, (v, i) => i * step + start);
Array.from({ length: Math.ceil((end - start + 1) / step) }, (_, i) => i * step + start);
```
```js