Skip to content

Instantly share code, notes, and snippets.

@v0lkan
Forked from anonymous/console.extend.wtf.js
Last active August 29, 2015 14:07
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 v0lkan/ba24e319c465f34a006a to your computer and use it in GitHub Desktop.
Save v0lkan/ba24e319c465f34a006a to your computer and use it in GitHub Desktop.
// ## 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);
@v0lkan
Copy link
Author

v0lkan commented Oct 3, 2014

forked it, because I had created anonymously by mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment