0 comments / July 15, 2016

Call function from string in javascript without eval

Lets say, we grabed a function call from somewhere and have it in a variable, Simply match the function name and parameters separately using regular expression and call the function using window object.