Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check if function exists

//check if myProcedure() function exists
if (typeof myProcedure === "function") { 
    // This function exists
}
Source by css-tricks.com #
 
PREVIOUS NEXT
Tagged: #js #check #function #exists
ADD COMMENT
Topic
Name
8+3 =