5 lines
179 B
JavaScript
5 lines
179 B
JavaScript
function checkIncludeClass(selector, className) {
|
|
return document.querySelectorAll(selector)[0]?.className.includes(className);
|
|
}
|
|
|
|
exports.checkIncludeClass = checkIncludeClass; |