From 3b3cfc34e01b157da86cbcbd8af7576ddab148d2 Mon Sep 17 00:00:00 2001 From: Michael Gutman Date: Sun, 24 Dec 2017 11:05:42 -0500 Subject: [PATCH] Fix typo in negate.md --- snippets/negate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/negate.md b/snippets/negate.md index 812b24efb..5f14e4a0f 100644 --- a/snippets/negate.md +++ b/snippets/negate.md @@ -5,7 +5,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 ```