For example, a have two statement conditions:
First, something similar to
const condition1 = value === '' && value1 === '' && value2 === '' && valu3e === '' && value4 === '' && value5 === ''
and second conditions more simple like
const condition2 = value === 'error'
and my if the statement has the two like this:
if (condition1 || condition2) {
....
}
Has any way to make this better than the actual implementation?
valuevariables? Use an array instead.