title: How do I resolve the no-restricted-syntax from eslinter in JavaScript ?
body: <p>I am using ESLint in my project and am using the airbnb style guide. The following piece of code in my program is giving me a linting issue. I am working on ES6. It's telling me to avoid using for-in here. What would be a better alternative as per ES6 standards ?</p>
  
  <pre><code>function solveRole (i18nData) {
    entries = {};
  
      for (const property in i18nData) {
      entries[property] = i18nData[property];
    }
  }
  </code></pre>