6 lines
159 B
JavaScript
6 lines
159 B
JavaScript
|
// Common
|
||
|
function checkElement(element, index = 0) {
|
||
|
return document.querySelectorAll(element)[index] !== undefined;
|
||
|
}
|
||
|
|
||
|
exports.checkElement = checkElement;
|