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