Skip to content

Instantly share code, notes, and snippets.

@sntran
Created October 25, 2019 16:28
Show Gist options
  • Save sntran/e0c543e2560fbcd17489954f052df26e to your computer and use it in GitHub Desktop.
Save sntran/e0c543e2560fbcd17489954f052df26e to your computer and use it in GitHub Desktop.

Revisions

  1. sntran created this gist Oct 25, 2019.
    1 change: 1 addition & 0 deletions $.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    const $ = (selector, parent = document) => Array.from(parent.querySelectorAll(selector));