Skip to content

Instantly share code, notes, and snippets.

@oelna
Last active April 10, 2022 15:06
Show Gist options
  • Save oelna/58888bf1c7a75c78d190ddffb57f6d65 to your computer and use it in GitHub Desktop.
Save oelna/58888bf1c7a75c78d190ddffb57f6d65 to your computer and use it in GitHub Desktop.
Quick $ and $$ wrappers for querySelector
const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment