Created
December 20, 2019 20:08
-
-
Save DanielCender/5d9c07bf6eac4b59d0ffa3d46161a1aa to your computer and use it in GitHub Desktop.
Some code golf examples...
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
// Code golf is taking this function | |
const reverse = (st) => { | |
if(st === true) { | |
return false; | |
} | |
if(st === false) { | |
return true; | |
} | |
}; | |
// And making it this | |
let z=s=>!s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment