code: function Service(args) {
    const obj = createRpcService(args);
    Object.getOwnPropertyNames(obj).forEach(k => {
      if (typeof obj[k] !== 'function') {
        this[k] = obj[k];
      }
    });
  }
docs: ================================================================================ Class simulation for backward compatibility and cases where inheritance fit