title: IE 11, Modernizr and SCRIPT1002 syntax error
body: <p>I have a site that use Modernizr for check if browser support es6.</p>
  
  <p>I have this script:</p>
  
  <pre><code> if (Modernizr.es6number) {
          Object.keys(objFiltri).map(key =&gt; objGrid_CustomFilter.perQuery[key] = objFiltri[key]);
      } else {
          labelsPrint.map(function (key) { objGrid_CustomFilter.perQuery[key] = objFiltri[key] });
      }
  </code></pre>
  
  <p>In IE11 the code</p>
  
  <pre><code>Modernizr.es6number
  </code></pre>
  
  <p>return false, but IE give me an error (SCRIPT1002 incorrect syntax) because doesn't recognize the es6 method .map.</p>
  
  <p>My question is, if the <strong>IF</strong> return <strong>FALSE</strong>, why IE pass through the <strong>TRUE</strong> case? 
  How can I avoid that?</p>
  
  <p>Thank you!</p>