code: function (f, proto) {
          function Ctor() {}
          Ctor.prototype = proto
          f.prototype = new Ctor()
          f.prototype.constructor = Ctor
          return f
      }
docs: Create a class with specified proto