Skip to content
Advertisement

Tag: properties

Dynamically access methods of class TypeScript

I’m trying to access the methods of a class dynamically, using the value of a previously set variable in TypeScript. Something similar to this: For example in PHP I can do the following: Anyone know if this is possible, and if it is, how to do it? I know it slightly contradicts the idea of a typed language, but its

Advertisement