Fix negate.md
This commit is contained in:
@ -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 ]
|
||||
```
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user