javascript check if function exists

52

js check if function exists -

if (typeof yourFunctionName == 'function') { 
  yourFunctionName(); 
}

Comments

Submit
0 Comments