Merge pull request #347 from michael-gutman/master

[UPDATE] Fix typo in negate.md
This commit is contained in:
Angelos Chalaris
2017-12-24 18:12:46 +02:00
committed by GitHub

View File

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