lib/rules/newline-after-var.js
function isLastNode(node) {
            const token = sourceCode.getTokenAfter(node);

            return !token || (token.type === "Punctuator" && token.value === "}");
        }
function isLastNode(node) {
            const token = sourceCode.getTokenAfter(node);

            return !token || (token.type === "Punctuator" && token.value === "}");
        }
function isLastNode ( node ) { const token = sourceCode . getTokenAfter ( node ) ; return ! token || ( token . type === "Punctuator" && token . value === "}" ) ; }
Determine if provided node is the last of their parent block.
@private
@param {ASTNode} node - node to test
@returns {boolean} True if `node` is last of their parent block.
Determine if provided node is the last of their parent block .