+ it dev typescript nameof Get name of variable in typescript How can I get a variables name in typescript? I want something like this: var name = "Foo"; alert(getVariableName(name)); //Prints "name" wono | tweet Add comment Do you want to delete? YesNo