Last active
January 16, 2018 14:49
-
-
Save axross/3ed548da56b5ab5337224628d493bdab to your computer and use it in GitHub Desktop.
jQuery
This file contains hidden or 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
| window.$ = (arg) => | |
| typeof arg === 'function' | |
| ? window.document.addEventListener('DOMContentLoaded', arg) | |
| : window.document.querySelector(arg); | |
| window.$.ajax = window.fetch; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment