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