Quantumbraid's picture
download
raw
308 Bytes
import collectSiblings from './collectSiblings';
/**
* Collects all previous and next sibling elements of a given element.
*
* @param node the element
*/
export default function siblings(node) {
return collectSiblings(node && node.parentElement ? node.parentElement.firstElementChild : null, node);
}

Xet Storage Details

Size:
308 Bytes
·
Xet hash:
2e797bd0ba85970e364ed2fe0e7c76d350628b86b7e1a87352f402bb2f0f67e5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.