I am pretty new to Angular and I am writing a simple if statement to check if my property isn't one 10 things. Is there a Not In or filter from enums or from a list?
public type: string;
if(type === '1' || type === '2' || type === '3') || type === '4'){
// do something
} else {
//do something else
}
I am looking for something simple if we can use like
if(type not in (1,2,3))
What is the best way to check the scenario like this against the string?