UNPKG

@coreui/vue-pro

Version:

UI Components Library for Vue.js

24 lines (20 loc) 690 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const getNextSibling = (elem, selector) => { // Get the next sibling element let sibling = elem.nextElementSibling; // If there's no selector, return the first sibling if (!selector) return sibling; // If the sibling matches our selector, use it // If not, jump to the next sibling and continue the loop while (sibling) { if (sibling.matches(selector)) return sibling; sibling = sibling.nextElementSibling; } return; }; exports.default = getNextSibling; exports.getNextSibling = getNextSibling; //# sourceMappingURL=getNextSibling.js.map