Format snippets
This commit is contained in:
@ -12,7 +12,10 @@ 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) }, (_, 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