Code Review Refactor Multiple If Condition In Javascript Typescript

Code Review Refactor Multiple If Condition In Javascript Typescript