Fix negate.md

This commit is contained in:
Angelos Chalaris
2018-01-08 17:24:23 +02:00
parent 0e437cf103
commit 9809c2c3dd
2 changed files with 2 additions and 3 deletions

View File

@ -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 ]
```

View File

@ -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