Travis build: 1116

This commit is contained in:
30secondsofcode
2019-04-15 07:01:48 +00:00
parent 4c4a1f23d8
commit 79763ab63f
6 changed files with 19 additions and 16 deletions

View File

@ -9,9 +9,9 @@ The `func` is invoked with three arguments (`value, index, array`).
const remove = (arr, func) =>
Array.isArray(arr)
? arr.filter(func).reduce((acc, val) => {
arr.splice(arr.indexOf(val), 1);
return acc.concat(val);
}, [])
arr.splice(arr.indexOf(val), 1);
return acc.concat(val);
}, [])
: [];
```