1 | import {Selection, root} from "./selection/index";
|
2 |
|
3 | export default function(selector) {
|
4 | return typeof selector === "string"
|
5 | ? new Selection([document.querySelectorAll(selector)], [document.documentElement])
|
6 | : new Selection([selector == null ? [] : selector], root);
|
7 | }
|