code: function (v, p) {
        if (typeof v !== 'object')
          return true;
        var count = 0;
        for (var attr in v) if (v.hasOwnProperty(attr)) count = count + 1;
        return count >= p;
      }
docs: ***** object validation ****