Travis build: 1265

This commit is contained in:
30secondsofcode
2018-01-16 15:14:29 +00:00
parent dd5f7c8c3e
commit 62bb691a8b
3 changed files with 95 additions and 4 deletions

View File

@ -8,7 +8,9 @@ You can omit `step` to use a default value of `1`.
```js
const initializeArrayWithRangeRight = (end, start = 0, step = 1) =>
Array.from({ length: Math.ceil((end + 1 - start) / step) }).map((v, i, arr) => (arr.length - i - 1) * step + start);
Array.from({ length: Math.ceil((end + 1 - start) / step) }).map(
(v, i, arr) => (arr.length - i - 1) * step + start
);
```
```js