Answers for "javascript function if exists"

7

javascript check if function exists

//check if sayHello() function exists
if (typeof sayHello === "function") { 
    // This function exists
}
Posted by: Guest on August-02-2019
1

how to check if exists in javascript

if (elem != null) {
Posted by: Guest on July-26-2021

Code answers related to "javascript function if exists"

Code answers related to "Javascript"

Browse Popular Code Answers by Language