Skip to content

Instantly share code, notes, and snippets.

@evgv
Last active April 21, 2017 07:47
Show Gist options
  • Select an option

  • Save evgv/1f689acfc8bc81aa9aefac00d103e496 to your computer and use it in GitHub Desktop.

Select an option

Save evgv/1f689acfc8bc81aa9aefac00d103e496 to your computer and use it in GitHub Desktop.
Js. Check if jQuery has function.

Check if jQuery has function

For example we are check elevateZoom function.

    if ( !! jQuery.prototype.elevateZoom ) { 
        // has
    } else {
        // hasn't
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment