title: How can I a number to CPF format in JavaScript?
body: <p>I would like to format an integer to the CPF (Cadastro de Pessoas Físicas)(Brazilian ID Number) format.
  I would like a function that takes an integer of 11 digits as an argument and returns a string formatted like this:</p>
  
  <pre><code>###.###.###-##
  </code></pre>
  
  <p>Example:</p>
  
  <pre><code>formatToCPF(integer){     // integer=94256116885
  
      String formattedString
  
      //code
  
  return formattedString    //returns "942.561.168-85"
  </code></pre>