typescript switch error type code example
Example: typescript switch test per case
switch(true) {
case if(constant1 == 1): {
//statements;
break;
}
case if(constant2 == 2): {
//statements;
break;
}
default: {
//statements;
break;
}
}