title: moment.localeData is not a function error message
body: <p>I'm using <code>moment</code> library, I want to initial <code>localeData</code> function. </p>
  
  <p>but I got this error:</p>
  
  <pre><code>Uncaught TypeError: moment.localeData is not a function
  </code></pre>
  
  <hr>
  
  <p><strong>my moment version is: <code>"^2.24.0"</code>.</strong></p>
  
  <pre><code> var moment = require('moment')
   console.log('moment',moment.localeData())
  </code></pre>