Skip to content

Instantly share code, notes, and snippets.

View Bear-Foot's full-sized avatar

Wilfried Boukhers Bear-Foot

  • Freelance
  • France
View GitHub Profile
// UPD:
// Now available as npm module!
// Check out https://github.com/RReverser/better-log for details.
console.log = (function (log, inspect) {
return function () {
return log.apply(this, Array.prototype.map.call(arguments, function (arg) {
return inspect(arg, { depth: 1, colors: true });
}));
};