What does
private _someVar: (value: any) => void = () => {};
mean?
I think it's "a variable with type as a function that can take any value and return type void" , but what's the deal with = () => {};?
Is it the declaration of variable, like assigning an empty function to it?
If so, why would someone do that?
Can you please provide me some real life example to do so?
Also, it would be really helpful to have few more such examples to make me more comfortable with such declarations.