'use strict';

const findRelevantOptions = (element, tagName) => {
    if (element.nodeType !== 1) {
        return undefined;
    }
    return (element.nodeName === tagName.toUpperCase())
        ? [element]
        : Array.from(element.querySelectorAll(tagName));
};

exports.findRelevantOptions = findRelevantOptions;

//# sourceMappingURL=mutation-oberserver-304d728b.js.map