From 9f51a552b90652cd7c823e3bed6a1252da6a248b Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Mon, 8 Jan 2018 17:24:23 +0200 Subject: [PATCH] Fix negate.md --- snippets/negate.md | 3 +-- tag_database | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/snippets/negate.md b/snippets/negate.md index 9c621990e..c00ce6e8c 100644 --- a/snippets/negate.md +++ b/snippets/negate.md @@ -9,6 +9,5 @@ const negate = func => (...args) => !func(...args); ``` ```js -filter([1, 2, 3, 4, 5, 6], negate(isEven)); // [1, 3, 5] -negate(isOdd)(1); // false +[1, 2, 3, 4, 5, 6].filter(negate(n => n % 2 == 0)); // [ 1, 3, 5 ] ``` diff --git a/tag_database b/tag_database index 85d09ad53..d5e39dfac 100644 --- a/tag_database +++ b/tag_database @@ -101,7 +101,7 @@ maxN:array,math median:math,array memoize:function minN:array,amth -negate:logic,function +negate:function nthElement:array objectFromPairs:object,array objectToPairs:object,array