Travis build: 891

This commit is contained in:
30secondsofcode
2018-12-12 17:17:27 +00:00
parent 8c3d570202
commit 830e71b2ae
11 changed files with 18 additions and 30 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);
}, [])
: [];
```