function isInitialized(node) {
    const declaration = node.parent;
    const block = declaration.parent;

    if (isForLoop(block)) {
        if (block.type === "ForStatement") {
            return block.init === declaration;
        }
        return block.left === declaration;
    }
    return Boolean(node.init);
}
function isInitialized(node) {
    const declaration = node.parent;
    const block = declaration.parent;

    if (isForLoop(block)) {
        if (block.type === "ForStatement") {
            return block.init === declaration;
        }
        return block.left === declaration;
    }
    return Boolean(node.init);
}
function isInitialized ( node ) { const declaration = node . parent ; const block = declaration . parent ; if ( isForLoop ( block ) ) { if ( block . type === "ForStatement" ) { return block . init === declaration ; } return block . left === declaration ; } return Boolean ( node . init ) ; }
Checks whether or not a given declarator node has its initializer.
@param {ASTNode} node - A declarator node to check.
@returns {boolean} `true` when the node has its initializer.
Checks whether or not a given declarator node has its initializer .
Returns true if the given node is initialized.