Const app setting values = ('123', '456','789') //These values we are fetching from the app setting.
let hasTrue = appSettingValues.some(value => value === "put your input values" || value === "put your input values");
Instead of switching case statements, we can improve our code like this.
Some compare config values and if they match then return true.

Join the conversation! Your thoughts help the community grow.