I'm trying to understand the difference between two ways of declaring an optional parameter for a function:
parameter?: type
and
parameter?: type | undefined
From what I understand, the first is a shorthand for
parameter: type | undefined = undefined
Is the second way any different from this?
Thanks!