update snippets 96-107

This commit is contained in:
Stefan Feješ
2017-12-25 14:38:49 +01:00
committed by Agamemnon Zorbas
parent a7fe8cb9d6
commit 6bedb8fba4
11 changed files with 70 additions and 40 deletions

View File

@ -11,5 +11,8 @@ const remove = (arr, func) =>
arr.splice(arr.indexOf(val), 1); return acc.concat(val);
}, [])
: [];
// remove([1, 2, 3, 4], n => n % 2 == 0) -> [2, 4]
```
```js
remove([1, 2, 3, 4], n => n % 2 == 0) -> [2, 4]
```