Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### initializeArrayWithRangeRight
|
||||
---
|
||||
title: initializeArrayWithRangeRight
|
||||
tags: array,math,intermediate
|
||||
---
|
||||
|
||||
Initializes an array containing the numbers in the specified range (in reverse) where `start` and `end` are inclusive with their common difference `step`.
|
||||
|
||||
@ -17,4 +20,4 @@ const initializeArrayWithRangeRight = (end, start = 0, step = 1) =>
|
||||
initializeArrayWithRangeRight(5); // [5,4,3,2,1,0]
|
||||
initializeArrayWithRangeRight(7, 3); // [7,6,5,4,3]
|
||||
initializeArrayWithRangeRight(9, 0, 2); // [8,6,4,2,0]
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user