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