lib/truncator.js
function truncateObj(obj, level) {
  var dst = {};
  for (var attr in obj) {
    if (Object.prototype.hasOwnProperty.call(obj, attr)) {
      dst[attr] = module.exports.truncate(obj[attr], level);
    }
  }

  return dst;
}
function truncateObj(obj, level) {
  var dst = {};
  for (var attr in obj) {
    if (Object.prototype.hasOwnProperty.call(obj, attr)) {
      dst[attr] = module.exports.truncate(obj[attr], level);
    }
  }

  return dst;
}
function truncateObj ( obj , level ) { var dst = { } ; for ( var attr in obj ) { if ( Object . prototype . hasOwnProperty . call ( obj , attr ) ) { dst [ attr ] = module . exports . truncate ( obj [ attr ] , level ) ; } } return dst ; }
truncateObj truncates each key in the object separately, which is useful for handling circular references.
truncateObj truncates each key in the object separately which is useful for handling circular references .