Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
20 lines
548 B
Plaintext
20 lines
548 B
Plaintext
"use strict";
|
|
|
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
|
|
exports.__esModule = true;
|
|
exports.default = nextUntil;
|
|
|
|
var _collectSiblings = _interopRequireDefault(require("./collectSiblings"));
|
|
|
|
/**
|
|
* Collects all next sibling elements of an element until a given selector is matched.
|
|
*
|
|
* @param node the referene node
|
|
* @param selector the selector to match
|
|
*/
|
|
function nextUntil(node, selector) {
|
|
return (0, _collectSiblings.default)(node, node, selector);
|
|
}
|
|
|
|
module.exports = exports["default"]; |