Skip to content

Instantly share code, notes, and snippets.

Created October 3, 2014 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anonymous/fe069e12c0388d2877ff to your computer and use it in GitHub Desktop.
Save anonymous/fe069e12c0388d2877ff to your computer and use it in GitHub Desktop.
console.extend.wtf.js
// ## 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