update snippets 96-107
This commit is contained in:
committed by
Agamemnon Zorbas
parent
a7fe8cb9d6
commit
6bedb8fba4
@ -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]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user