Quantumbraid's picture
download
raw
541 Bytes
import { baseClasses } from "../constants/state.constants";
const matchPrefix = `.${baseClasses.wrapperClass}`;
export const isExcludedNode = (
node: HTMLElement,
excluded: string[],
): boolean => {
return excluded.some((exclude) =>
node.matches(
`${matchPrefix} ${exclude}, ${matchPrefix} .${exclude}, ${matchPrefix} ${exclude} *, ${matchPrefix} .${exclude} *`,
),
);
};
export const cancelTimeout = (
timeout: ReturnType<typeof setTimeout> | null,
): void => {
if (timeout) {
clearTimeout(timeout);
}
};

Xet Storage Details

Size:
541 Bytes
·
Xet hash:
90ebb75f7f11034a02e16271d88740ed9ccfe649ec873375975bdefe1afb5524

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