Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check if function is available in scope

if (typeof me.onChange === "function") { 
    // safe to use the function
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #check #function #scope
ADD COMMENT
Topic
Name
5+3 =