Skip to content

Instantly share code, notes, and snippets.

@shengoo
Created April 24, 2014 02:39
Show Gist options
  • Save shengoo/11239607 to your computer and use it in GitHub Desktop.
Save shengoo/11239607 to your computer and use it in GitHub Desktop.
Check if Function Exists Before Calling
if (typeof yourFunctionName == 'function') {
yourFunctionName();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment