Let $M$ and $N$ be arbitrary metric spaces and $D \subset M$ dense. Given an equicontinuous sequence of maps $f_n\colon M \rightarrow N$ and a continuous map $f\colon M \rightarrow N$, suppose that $f_n \rightarrow f$ pointwisely in D. Show that $f_n \rightarrow f$ uniformly in each $K \subset M$ compact.
I know that if $f_n \rightarrow f$ pointwisely in M, then $f_n \rightarrow f$ uniformly in each $K \subset M$ compact.
So, my problem is showing that $f_n \rightarrow f$ pointwisely not just in D, but in M. For that, I should use that D is dense. How can I do that?
Can someone help me?
Thank you
Hint 1: $D\subset M$ is dense in $M$ if $\operatorname{cl}(D) = M$; in particular each $x\in M\smallsetminus D$ is a limit point of $D$.
Hint 2: Consider the following inequality $$d\left(f_n(x),f(x)\right) \leq d\left(f_n(x),f_n(x_k)\right) + d\left(f_n(x_k),f(x_k)\right) + d\left(f(x_k),f(x)\right) $$