title: Edge: SCRIPT1028: Expected identifier, string or number
body: <p>My page works fine in Chrome and Firefox:
  <a href="https://i.stack.imgur.com/7FSu5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7FSu5.png" alt="enter image description here"></a></p>
  
  <p>However, when I try to load this page in Edge, the questions and answers disappear. Only the categories are posted. Also, when trying to load this page in IE, everything disappears except for the search bar.</p>
  
  <p>Edge gives me the following error: </p>
  
  <blockquote>
    <p>SCRIPT1028: SCRIPT1028: Expected identifier, string or number on line 84 of faq.html</p>
  </blockquote>
  
  <p>This refers to the following code:</p>
  
  <pre><code>function sortByCategory(data) {
    return data.reduce((obj, c) =&gt; {
      const { category, ...rest } = c; // this line throws the error
      obj[category] = obj[category] || [];
      obj[category].push(rest);
      return obj;
    }, {});
  }
  </code></pre>
  
  <p>How do I fix this?</p>