Tag: javascript typeof
![](https://i0.wp.com/jeffreifman.com/wp-content/uploads/2013/01/jscript.jpg?resize=450%2C300&ssl=1)
Check if a Javascript Function Exists or Is Defined
It’s always frustrating when you get an error trying to call a function that hasn’t been defined but there’s an easy way to prevent this. To check if a Javascript function exists before calling it, try this: if (typeof yourFunctionName...