open-consul/ui-v2/app/utils/qsa-factory.js

6 lines
131 B
JavaScript

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