From 4b2938016aa5d1601bbf778758c7704b1d30049f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 24 Dec 2017 16:14:26 +0000 Subject: [PATCH] Travis build: 249 --- README.md | 2 +- docs/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e46490804..17cbcc2f3 100644 --- a/README.md +++ b/README.md @@ -1279,7 +1279,7 @@ Negates a predicate function. Take a predicate function and apply `not` to it with its arguments. ```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] // negate(isOdd)(1) -> false ``` diff --git a/docs/index.html b/docs/index.html index 03812f49d..c885c091c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -856,7 +856,7 @@ async function sleepyWork() {

negate

Negates a predicate function.

Take a predicate function and apply not to it with its arguments.

-
const negate = func => (...args) => !fun(...args);
+
const negate = func => (...args) => !func(...args);
 // filter([1, 2, 3, 4, 5, 6], negate(isEven)) -> [1, 3, 5]
 // negate(isOdd)(1) -> false