Travis build: 539

This commit is contained in:
30secondsofcode
2018-09-27 15:13:22 +00:00
parent aa15eada60
commit b44b539b40
13 changed files with 58 additions and 15 deletions

View File

@ -8,10 +8,11 @@ Omit the third argument, `delCount`, to remove `0` elements.
Omit the fourth argument, `elements`, in order to not add any new elements.
```js
const shank = (arr, index = 0, delCount = 0, ...elements) =>
arr.slice(0, index)
.concat(elements)
.concat(arr.slice(index + delCount));
const shank = (arr, index = 0, delCount = 0, ...elements) =>
arr
.slice(0, index)
.concat(elements)
.concat(arr.slice(index + delCount));
```
```js