Last active
May 30, 2018 15:28
-
-
Save Sensiblemnd/5cba51d973523101bb6aad89ca685f23 to your computer and use it in GitHub Desktop.
Creates a function out of '!'.
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
//Creates a function out of '!'. | |
//Use this to improve code readability. | |
//Instead of... if (!loggedIn) {} | |
//..do this.. if not(loggedIn) {} | |
const not = value => !value; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment