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