title: Why is Intl.NumberFormat formatting 4 digits together on es-ES locale?
body: <p>I'm trying to format a number using the <strong>Intl.NumberFormat</strong>. </p>
  
  <p>I have checked <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat" rel="nofollow noreferrer">MDN WebDocs</a> but I'm not able to get the response I guess it should return.</p>
  
  <p>I'm formatting with spanish locale, and I want to get the point separator between thousands (using <code>useGrouping</code> option), however, I'm not getting it</p>
  
  <ul>
  <li>Expected result: 1.124,50 €</li>
  <li>Obtained result: 1124,50 €</li>
  </ul>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var sNumber = '1124.5'
  var number = new Number(sNumber);
  
  let  style = {
              style: 'currency',
              currency: "EUR",
              minimumFractionDigits: 2,
              useGrouping: true
          };
  
  const formatter = new Intl.NumberFormat("es", style);
  
  console.log(formatter.format(number));</code></pre>
  </div>
  </div>
  </p>