2023-04-13 03:35:56 +02:00

13 lines
394 B
JavaScript

import { d } from '../globals/globals'
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/
const $$ = (selector, root = d.body) => [
...Array.from(root.querySelectorAll(selector)),
]
export default $$