I have the following function:
function myFunc(
  id: string,
  optionalParamOne?: number,
  optionalParamTwo?: string
) {
  console.log(optionalParamTwo);
}
I would like to call this function by specifying the id as it is required and optionalParamTwo. I don't care about optionalParamOne. I cannot change this function.
How can I call this function with the parameters id and optionalParamTwo without having to specify optionalParamOne?
I could do this:
myFunc('abc', null, 'dog')
But I have many optional parameters in my function signature and I'd rather not specify a value for each.