title: Getting the error "Wrap the parameter in parens" from JSLint, why?
body: <p>After executing JSLint I'm getting the following message: </p>
  
  <blockquote>
    <p>Wrap the parameter in parens.</p>
    
    <p>1 Expected '(' before 'info'. const valueArr = (info => { // Line 6,
    Pos 19</p>
  </blockquote>
  
  <p>I've read the <a href="https://eslint.org/docs/rules/arrow-parens" rel="nofollow noreferrer">Lint paren rules</a> but still I'm not sure what the problem is and how to handle it. My code:</p>
  
  <pre><code>const valueArr = (info =&gt; {
      items.forEach(function(item) {
          try {
              var xhr = new XMLHttpRequest();
              .....
          } catch (e) {
              console.log(e);
          }
      });
  });
  </code></pre>
  
  <p><strong>Updated</strong>:</p>
  
  <p>I already tried to put it with parens, but another warnings came up:</p>
  
  <blockquote>
    <p>"Expected 'function' and instead saw '=>'. const valueArr = ((info) =>
    {".</p>
  </blockquote>
  
  <pre><code>const valueArr = ((info) =&gt; {
      items.forEach(function(item) {
          try {
              var xhr = new XMLHttpRequest();
          } catch (e) {
              console.log(e);
          }
      });
  });
  </code></pre>