Last active
September 30, 2016 23:48
-
-
Save skw/8b9d7bb8f405d5ed493dff5bf49aae9b to your computer and use it in GitHub Desktop.
match.md
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
trie-based siwtch: | |
match(arg)({ | |
'this': () => console.log('this'), | |
'that': () => console.log('this'), | |
})(default) | |
match(arg)( | |
function this() {console.log('this')}, | |
function that() {console.log('this')}, | |
})(default) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment