mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-07 18:10:29 +08:00
8 lines
172 B
JavaScript
8 lines
172 B
JavaScript
function next(node, selector) {
|
|
if (selector && document.querySelector(selector) !== node.nextElementSibling) {
|
|
return null;
|
|
}
|
|
|
|
return node.nextElementSibling;
|
|
}
|