mirror of
https://github.com/LalleSX/4chan-XZ.git
synced 2025-10-07 07:22:37 +02:00
13 lines
394 B
JavaScript
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 $$
|