code: function(object) {
    var level = 1;
    var key;
    for (key in object) {
      if (!object.hasOwnProperty(key)) continue;
  
      if (_.isObjectLike(object[key])) {
        var depth = depthOf(object[key]) + 1;
        level = Math.max(depth, level);
      }
    }
    return level;
  }
docs: Copied from http://stackoverflow.com/questions/13523951/how-to-check-the-depth-of-an-object