I'm using the following code
   function(props){
...
    this.props.appName = this.options.appName || this.props.appName;
          this.props.host = this.options.host || this.props.hos;
          this.props.endpoint = this.options.endpoint || this.props.endpoint;
          this.props.appPath = this.options.appPath || this.props.appPath;
    
       ....
Before I was using the or (||) I've used something like
this.props = Object.assign(this.props, props);
I've many fields which I need to assign is there a way to make it shorter?
 
     
     
     
     
    