Skip to content

Instantly share code, notes, and snippets.

@huenisys
Last active April 22, 2020 15:00
Show Gist options
  • Save huenisys/0f3c830f3a68a045abfd3fe1f6ee2abf to your computer and use it in GitHub Desktop.
Save huenisys/0f3c830f3a68a045abfd3fe1f6ee2abf to your computer and use it in GitHub Desktop.
Vanill JS shortened
const _$ = el => document.querySelector(el);
const _$$ = el => document.querySelectorAll(el);
const _on = (eventName, el, eventHandler) => el.addEventListener(eventName, eventHandler, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment