I create functions in Javascript dynamically. Sometimes I need to check if a certain function is actually already created.
I have the name of the function a
You can use eval:
if ( eval("typeof stringFunction === 'function'") ){ /*whatever*/ }