consul/ui/packages/consul-ui/app/utils/dom/qsa-factory.js

6 lines
133 B
JavaScript

export default function (doc = document) {
return function (sel, context = doc) {
return context.querySelectorAll(sel);
};
}