Skip to content

Instantly share code, notes, and snippets.

Last active Dec 18, 2015
What would you like to do?
console.log() of object snapshots... needs jQuery
var consoleLog = console.log;
console.log = function() {
consoleLog.apply(this, $.map(arguments, function(obj) {
return $.isPlainObject(obj) ? $.extend(true, {}, obj) : obj;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment