Favivon - Correção

This commit is contained in:
2026-05-30 19:59:39 -03:00
parent 76ddaa815d
commit d7dfd221f0
32859 changed files with 5459654 additions and 404 deletions
+19
View File
@@ -0,0 +1,19 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = siblings;
var _collectSiblings = _interopRequireDefault(require("./collectSiblings"));
/**
* Collects all previous and next sibling elements of a given element.
*
* @param node the element
*/
function siblings(node) {
return (0, _collectSiblings.default)(node && node.parentElement ? node.parentElement.firstElementChild : null, node);
}
module.exports = exports["default"];