Created
October 3, 2014 21:35
-
-
Save anonymous/fe069e12c0388d2877ff to your computer and use it in GitHub Desktop.
console.extend.wtf.js
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
// ## Every console needs a WTF prompt. | |
// Method: | |
console.wtf = function() { | |
console.warn.apply(console, | |
['(W)hat a (T)errible (F)ailure »» '].concat( | |
Array.prototoype.slice.call(arguments) | |
) | |
); | |
}; | |
// Usage: | |
console.wtf('This should not have happened AT ALL!', param1, param2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment