-
Shortened URL for this gist: https://git.io/v68XM
-
GitHub repository: ES6 in Motion
-
Arrow Functions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Licensed under CC BY 4.0. | |
| type $If<X: boolean, Then, Else = empty> = $Call< | |
| & ((true, Then, Else) => Then) | |
| & ((false, Then, Else) => Else), | |
| X, | |
| Then, | |
| Else, | |
| >; |
- References
- Dependency
unittest2