Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check if function exists

if (typeof yourFunctionName == 'function') { 
  yourFunctionName(); 
}
Source by css-tricks.com #
 
PREVIOUS NEXT
Tagged: #js #check #function #exists
ADD COMMENT
Topic
Name
2+2 =