I have a type defined like this:
function Type(){} ;
I also have a class that creates types dynamically so I pass the type.
function Factory(Type){};
I need to check wether the type has any given property. My question is similar to this, but I need to check on type not on object.
[UPDATE] I have tried creating a temporary object which works for some of my types, but some of my types require some arguments on the constructor which throw exceptions if the correct argument types are not found.