Skip to content

Instantly share code, notes, and snippets.

@deminoth
Created August 26, 2015 07:12
Show Gist options
  • Save deminoth/e2c27d650676716362ae to your computer and use it in GitHub Desktop.
Save deminoth/e2c27d650676716362ae to your computer and use it in GitHub Desktop.
immutable.js console.log
(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