|
|
|
|
|
by Etheryte
1708 days ago
|
|
That's fairly subjective and I can see arguments for both sides, in the above example I've gone with the approach the Typescript documentation itself gives which uses any. Given the parameter is only used as an input, using any and unknown are interchangeable and there is no difference in this specific case. |
|
"What is object? I don't know. Does it meet these conditions? Yes then object is Human else not."