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.