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