mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-24 03:32:58 +03:00
docs(negate): wrong document result (#207)
This commit is contained in:
parent
deb3882890
commit
d909cdc8e9
@ -22,5 +22,5 @@ function negate<F extends (...args: unknown[]) => boolean>(func: F): F;
|
||||
import { negate } from 'es-toolkit/function';
|
||||
|
||||
negate(() => true)(); // returns 'false'
|
||||
negate(() => false)(); // returns 'false'
|
||||
negate(() => false)(); // returns 'true'
|
||||
```
|
||||
|
@ -22,5 +22,5 @@ function negate<F extends (...args: unknown[]) => boolean>(func: F): F;
|
||||
import { negate } from 'es-toolkit/function';
|
||||
|
||||
negate(() => true)(); // returns 'false'
|
||||
negate(() => false)(); // returns 'false'
|
||||
negate(() => false)(); // returns 'true'
|
||||
```
|
||||
|
@ -22,5 +22,5 @@ function negate<F extends (...args: unknown[]) => boolean>(func: F): F;
|
||||
import { negate } from 'es-toolkit/function';
|
||||
|
||||
negate(() => true)(); // 返回 'false'
|
||||
negate(() => false)(); // 返回 'false'
|
||||
negate(() => false)(); // 返回 'true'
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user