Header Ads Widget

Responsive Advertisement

Ticker

6/recent/ticker-posts

how to use application setting values and compare at code level

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. 

Post a Comment

0 Comments