Snippet format update

To match the starter (for the migration)
This commit is contained in:
Angelos Chalaris
2019-08-13 10:29:12 +03:00
parent a5164f392a
commit 611729214a
381 changed files with 1951 additions and 1989 deletions

View File

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