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

11 lines
211 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
export default function (doc = document) {
return function (sel, context = doc) {
return context.querySelectorAll(sel);
};
}