jeudi 28 mars 2019

Type.GetType equivalent in ES6 Reflection

I recently read about the Metaprograming improvements of ES6 (Symbols, Reflection, Proxies) and they are really cool indeed, but I had hard time finding how you can create Type instances programmatically through code like in C# with the help of the Type.GetType(string).

Is there an equivalent option in ES6?

The background is that in an ideal word if I want to use Reflection for calling a constructor on a class I would like to have the type programmatically as well.

Thanks in advance!





Aucun commentaire:

Enregistrer un commentaire