Created
July 16, 2017 13:33
-
-
Save vanaf1979/5532d76e2e746d99b577f2fb33344b4d to your computer and use it in GitHub Desktop.
find an ellement
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
function find( selector , context = null ) | |
{ | |
return ( context || document ).querySelector( selector ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment