Quantumbraid's picture
download
raw
422 Bytes
export const getOwnerDocument = (el: Element | null | undefined): Document => {
return el?.ownerDocument ?? document;
};
export const getOwnerWindow = (
el: (Window & typeof global) | Element | null | undefined
): Window & typeof global => {
if (el && 'window' in el && el.window === el) {
return el;
}
const doc = getOwnerDocument(el as Element | null | undefined);
return doc.defaultView || window;
};

Xet Storage Details

Size:
422 Bytes
·
Xet hash:
35a9f613f9b4545c145a59206fcaa7819117a9cc2ed562a9b84718ddc8cdf877

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