Merge pull request #1673 from g1tman/patch-2
Use underscore for unused argument
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user