0

How to check if there is a function declared ? The function name is available in variable. Example:

var n = 'f1';
if (!functionExists(n)) {
    //execute code when function not available
}
koral
  • 2,481
  • 3
  • 32
  • 55

0 Answers0