Created
July 8, 2016 09:29
-
-
Save jesusalber1/327967e11b8e395f767a8327a39ba705 to your computer and use it in GitHub Desktop.
query selector shortcut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* It returns only the first match || null */ | |
var $ = document.querySelector.bind(document); | |
/* Ex: $('a.link') */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment