You have a variable:
const test = "Some random value."
and the name of the variable in a string format:
const input = "test"
is there a way to get the value without a enum?
console.log(someMagicFunction(input))
$ => "Some random value."
Thanks!