Use underscore for unused argument

This commit is contained in:
g1tman
2020-10-21 20:49:06 +05:30
committed by GitHub
parent dc5829f805
commit c277dfb9ff

View File

@ -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