source: node_modules/d3-selection/src/selectAll.js@ e4c61dd

Last change on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 300 bytes
Line 
1import array from "./array.js";
2import {Selection, root} from "./selection/index.js";
3
4export default function(selector) {
5 return typeof selector === "string"
6 ? new Selection([document.querySelectorAll(selector)], [document.documentElement])
7 : new Selection([array(selector)], root);
8}
Note: See TracBrowser for help on using the repository browser.