Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
arrayEach(listTH, (TH, index, array) => {
if (TH === void 0) {
return false;
}
if ((!selectionByHeader && level < levelLimit) || (selectionByHeader && !isInSelection)) {
if (hasClass(TH, classHighlight)) {
removeClass(TH, classHighlight);
}
} else if (!hasClass(TH, classHighlight)) {
addClass(TH, classHighlight);
}
});
}
arrayEach(listTH, (TH, index, array) => {
if (TH === void 0) {
return false;
}
if ((!selectionByHeader && level < levelLimit) || (selectionByHeader && !isInSelection)) {
if (hasClass(TH, classHighlight)) {
removeClass(TH, classHighlight);
}
} else if (!hasClass(TH, classHighlight)) {
addClass(TH, classHighlight);
}
});
}
arrayEach(listTH, function (TH, index, array) {
if (TH === void 0) {
return false;
}
if (!selectionByHeader && level < levelLimit || selectionByHeader && !isInSelection) {
if (hasClass(TH, classHighlight)) {
removeClass(TH, classHighlight);
}
} else if (!hasClass(TH, classHighlight)) {
addClass(TH, classHighlight);
}
});
};
arrayEach(listTH, function (TH, index, array) {
if (TH === void 0) {
return false;
}
if (!selectionByHeader && level < levelLimit || selectionByHeader && !isInSelection) {
if (hasClass(TH, classHighlight)) {
removeClass(TH, classHighlight);
}
} else if (!hasClass(TH, classHighlight)) {
addClass(TH, classHighlight);
}
});
};