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,807
  • 3
  • 37
  • 65

0 Answers0