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
|
```js
|
||||||
const initializeArrayWithRange = (end, start = 0, step = 1) =>
|
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
|
```js
|
||||||
|
|||||||
Reference in New Issue
Block a user