import $$ from '$$'
$$('p').forEach(a => a.innerText = "yolo")
Last active
January 7, 2017 16:30
-
-
Save alexwilson/0ba8042953f22b7d38e9378f856df438 to your computer and use it in GitHub Desktop.
QuerySelectorAll jQuery-Like Helper
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 $$ = (s, c) => [].slice.call((c || document).querySelectorAll(s)) | |
export default $$ |
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
{ | |
"name": "queryselectorall-array", | |
"version": "1.0.0", | |
"description": "QuerySelectorAll jQuery-Like Helper", | |
"main": "index.js", | |
"dependencies": {}, | |
"devDependencies": {}, | |
"author": "Alex Wilson <a@ax.gy> (https://ax.gy)", | |
"license": "WTFPL" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment