UNPKG

393 BJavaScriptView Raw
1"use strict";
2
3exports.__esModule = true;
4exports.default = qsa;
5var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
6/**
7 * Runs `querySelectorAll` on a given element.
8 *
9 * @param element the element
10 * @param selector the selector
11 */
12
13function qsa(element, selector) {
14 return toArray(element.querySelectorAll(selector));
15}
16
17module.exports = exports["default"];
\No newline at end of file