Created
January 9, 2017 01:46
-
-
Save jmorrell/991f5f7254be53eb290dee333d51c666 to your computer and use it in GitHub Desktop.
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
function sad() { | |
return true; | |
} | |
Boolean.prototype.stop = function() { | |
console.log('Stopping the sad'); | |
} | |
function beAwesome() { | |
console.log('Time for awesomeness!'); | |
} | |
if (sad() === true) { | |
sad().stop(); | |
beAwesome(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment