Created
August 26, 2015 07:12
-
-
Save deminoth/e2c27d650676716362ae to your computer and use it in GitHub Desktop.
immutable.js console.log
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
(function () { | |
var _log = console.log; | |
console.log = function () { | |
var args = Array.prototype.map.call(arguments, function (arg) { | |
return typeof arg.toJS === "function" ? arg.toJS() : arg; | |
}); | |
return _log.apply(console, args); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment