Forked from hayatbiralem/log-function-for-chrome-console.js
Created
January 27, 2016 00:29
-
-
Save voidabhi/2a927cf464a3f8adc97d to your computer and use it in GitHub Desktop.
Log function for Chrome Console
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
var debug = true; | |
var log = function(type){ debug && window.console && console[( type in console ? type : 'log' )].apply(console, Array.prototype.slice.call(arguments, ( type in console ? 1 : 0 ))); }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment