Skip to content

Instantly share code, notes, and snippets.

@luan0ap
Created January 31, 2018 10:11
Show Gist options
  • Save luan0ap/6ed86f0a85a5624776383120d81047c1 to your computer and use it in GitHub Desktop.
Save luan0ap/6ed86f0a85a5624776383120d81047c1 to your computer and use it in GitHub Desktop.
Use functions as conditional
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