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

6 lines
131 B
JavaScript

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