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