Skip to content

Instantly share code, notes, and snippets.

@jmorrell
Created January 9, 2017 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmorrell/991f5f7254be53eb290dee333d51c666 to your computer and use it in GitHub Desktop.
Save jmorrell/991f5f7254be53eb290dee333d51c666 to your computer and use it in GitHub Desktop.
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