Created
June 12, 2019 03:19
-
-
Save Osmose/e7f91845d47c7d7b5437d73c8198067e to your computer and use it in GitHub Desktop.
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
switch (true) { | |
case "a".match(/a/): { | |
console.log("first"); | |
break; | |
} | |
default: { | |
console.log("default"); | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment