How to properly infer the Constructor of an object through JSDoc?
I want to make this function that receives a parameter and return its class if object
, the parameter itself if function
or the legacy object constructor if anything else.
How to properly infer the Constructor of an object through JSDoc?
I want to make this function that receives a parameter and return its class if object
, the parameter itself if function
or the legacy object constructor if anything else.
How to properly infer the Constructor of an object through JSDoc?
I want to make this function that receives a parameter and return its class if object
, the parameter itself if function
or the legacy object constructor if anything else.