I've got a method that return a string like this:

I need to extract that javascipt variable, any suggestions ?
I've got a method that return a string like this:

I need to extract that javascipt variable, any suggestions ?
 
    
    You would need to extract right side of equal sign, and then eval
for example:
var test = "var Admin = ['test1', 'test2']"
var Admin = eval(test.split("=")[1]);
console.log(Admin);