'use strict';

var index = require('./selection/index.js');

function select(selector) {
  return typeof selector === "string"
      ? new index.Selection([[document.querySelector(selector)]], [document.documentElement])
      : new index.Selection([[selector]], index.root);
}

module.exports = select;
