4 lines
183 B
JavaScript
4 lines
183 B
JavaScript
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
export default function qsa(element, selector) {
|
|
return toArray(element.querySelectorAll(selector));
|
|
} |