I'm trying to determine if a function exists however I want to do so dynamically (passing it as a string to a function).
The problem is that inside of the function if I alert the typeof it obviously tells me that the string is a string so how do I have JavaScript tell me if a function exists by using the string containing the function's name? I've tried a few things such as using eval and variable variables without success.
I don't use frameworks as I code JavaScript using actual JavaScript however researching this brought up endless framework results on search engines hence why I'm posting this question.
Thoughts please?
- John