code: function() {
  
          var args = [];
          var n = arguments.length;
          for (var i = 0; i < n; i++) {
              args.push(arguments[i]);
          }
  
          if (!(this instanceof Closepath)) { // switching context of `this` to Closepath when called without `new`
              return applyToNew(Closepath, args);
          }
  
          if (n > 0) {
              throw new Error('Closepath constructor expects no arguments.');
          }
  
          return this;
      }
docs: does not inherit from any other geometry object