Created
November 19, 2017 09:10
-
-
Save kepta/a4b32c51cb3d20e58c59c84140e60aa0 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
function whoIsEvilNow() { | |
if (time > 2014) { | |
return 'J. J. Abrams' | |
} | |
return 'darth vader'; | |
} | |
function findEvil(array, evil = whoIsEvilNow()) { | |
return array.find(item => item === evil); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment