function isImplicitNullishComparison(expression, scope) {
	if (
		expression.type !== "BinaryExpression" ||
		expression.operator !== "=="
	) {
		return false;
	}

	const reference = isReference(expression.left) ? "left" : "right";
	const nullish = reference === "left" ? "right" : "left";

	return (
		isReference(expression[reference]) &&
		(astUtils.isNullLiteral(expression[nullish]) ||
			isUndefined(expression[nullish], scope))
	);
}
Returns true iff the expression checks for nullish with loose equals.
Examples: value == null, value == void 0
@param {ASTNode} expression Test condition
@param {import('eslint-scope').Scope} scope Scope of the expression
@returns {boolean} True iff implicit nullish comparison