How to make function parameters optional in TypeScript?
Originally Published Here ๐!
To make the function parameters optional, we can use the ? symbol (question mark) after the parameter name when defining function in TypeScript.
TL;DR
// a simple function that returns
// a greeting with an optional name...
melvingeorge-me.hashnode.dev3 min read