title: How do i declare a static generator method in ES6 class
body: <p>How do i declare a static generator method in ES6 class ?</p>
  
  <pre><code>class Person
  {
    static *getData(){
    }
  }
  </code></pre>
  
  <p>Build when no export of the class is specified </p>
  
  <p><a href="https://i.stack.imgur.com/3oHSN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3oHSN.png" alt="No EXPORT SPECIFIED"></a></p>
  
  <p><a href="https://i.stack.imgur.com/9Fh57.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9Fh57.png" alt="WITH EXPORT"></a></p>