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

11 lines
212 B
JavaScript

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