How to make a parameter of a function optional in TS? | Functions | typescript Interview Questions | NextRound.in