Created
May 26, 2017 16:17
-
-
Save kamataryo/aca31e36983bd9ffa1b3ddd20cfbab8e to your computer and use it in GitHub Desktop.
This file contains 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
imort $switch from '@kamataryo/extypes/Object/$switch' | |
'ABC'[$switch] | |
.case('abc', () => console.log('not matched..')) | |
.case('ABC', () => console.log('matched!')) | |
.default(() => console.log('not matched..')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment