Created
June 1, 2014 18:59
-
-
Save 0x4a/8c26565ae2dcd2e38872 to your computer and use it in GitHub Desktop.
simple wrapper for console.log() - #js #dev
This file contains hidden or 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
//http://htmltweaks.com/Debugging_JavaScript_with_the_Console | |
var log = function(msg, force) { | |
force ? alert(msg) : (window.console && window.console.log ? window.console.log(msg) : null); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment