Exploring Typescript. While browsing through a project's codebase, I stumbled upon the following snippet and am unsure of its validity. Can anyone shed light on what this code is doing? It seems to be dealing with default values, but I'm not entirely sure.
public someFn = function(arg ?: number): void {
console.log(arg);
}
I find the behavior of `arg` quite puzzling. I am also confused about the purpose of `: void` in this context.
If you have any insights, please share. Thank you.