update snippets 78 - 96

This commit is contained in:
Stefan Feješ
2017-12-25 14:33:49 +01:00
committed by Agamemnon Zorbas
parent d0a8c3b238
commit a7fe8cb9d6
18 changed files with 90 additions and 43 deletions

View File

@ -6,6 +6,9 @@ Take a predicate function and apply `not` to it with its arguments.
```js
const negate = func => (...args) => !func(...args);
// filter([1, 2, 3, 4, 5, 6], negate(isEven)) -> [1, 3, 5]
// negate(isOdd)(1) -> false
```
```js
filter([1, 2, 3, 4, 5, 6], negate(isEven)) -> [1, 3, 5]
negate(isOdd)(1) -> false
```