Не будет сокращать его, но облегчит его поддержку и развитие.
const {
func,
} = ([{
value: 'Customer',
func: () => {
this.isCustomerFunctionSelected = true;
},
}, {
value: 'Dealer',
func: () => {
this.isCustomerFunctionSelected = true;
this.selectedCustomerValue = null;
},
}].find(x => x.value === this.functionValue) || {
func: () => {
this.reset = true;
},
});
func();