Created
January 31, 2018 10:11
-
-
Save luan0ap/6ed86f0a85a5624776383120d81047c1 to your computer and use it in GitHub Desktop.
Use functions as conditional
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
const conditional = () => ({ | |
conditionOne: 'result', | |
conditionTwo: 'result' | |
}) | |
conditional()['condition'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment