Created
June 16, 2019 15:45
-
-
Save FFKL/edc8b2f6253833b23869fae39d88529d to your computer and use it in GitHub Desktop.
Simple jQuery
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
const $ = selector => new Proxy( document.querySelector(selector)||Element, { get: (target, key) => Reflect.get(target, key) } ) ; | |
Element.prototype.on = Element.prototype.addEventListener; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment