lib/rules/vars-on-top.js
function isVariableDeclaration(node) {
            return (
                node.type === "VariableDeclaration" ||
                (
                    node.type === "ExportNamedDeclaration" &&
                    node.declaration &&
                    node.declaration.type === "VariableDeclaration"
                )
            );
        }
function isVariableDeclaration(node) {
            return (
                node.type === "VariableDeclaration" ||
                (
                    node.type === "ExportNamedDeclaration" &&
                    node.declaration &&
                    node.declaration.type === "VariableDeclaration"
                )
            );
        }
function isVariableDeclaration ( node ) { return ( node . type === "VariableDeclaration" || ( node . type === "ExportNamedDeclaration" && node . declaration && node . declaration . type === "VariableDeclaration" ) ) ; }
Checks whether a given node is a variable declaration or not.

@param {ASTNode} node - any node
@returns {boolean} `true` if the node is a variable declaration.
Checks whether a given node is a variable declaration or not .