Travis build: 1216

This commit is contained in:
30secondsofcode
2019-06-06 05:41:53 +00:00
parent e0285c79a8
commit 5e9e54fe18
13 changed files with 54 additions and 51 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);
}, [])
: [];
```