Is there a way to simplify the following condition?
var test = "";
var a = "NA";
var b = "valid";
answer = (v:string)=> {
test = v!==a && v!==b; //this condition here
}
Where both v
doesn't equal a
or b
?
I tried v!==(a&&b)
but doesn't seem to be the case.
Let me know if the above is already the simplest version of the condition, Thanks!