Const appSettingValues = ('123','456','789') // This values we are fetching from app setting
let hastrue = appSettingValues.some(value => value === "put your input values" || value === "put your input values");
Instead of switch case statement we can improve our code like this.
some - compare config values and if match then return true.
0 Comments
If you have any queries, please let me know. Thanks.