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