function isNaNIdentifier(node) {
	if (!node) {
		return false;
	}

	const nodeToCheck =
		node.type === "SequenceExpression" ? node.expressions.at(-1) : node;

	return (
		astUtils.isSpecificId(nodeToCheck, "NaN") ||
		astUtils.isSpecificMemberAccess(nodeToCheck, "Number", "NaN")
	);
}
Determines if the given node is a NaN `Identifier` node.
@param {ASTNode|null} node The node to check.
@returns {boolean} `true` if the node is 'NaN' identifier.