title: JavaScript endsWith is not working in IEv10?
body: <p>I'm trying to compare two strings in JavaScript using endsWith(), like</p>
  
  <pre class="lang-js prettyprint-override"><code>var isValid = string1.endsWith(string2);
  </code></pre>
  
  
  
  <p>It's working fine in Google Chrome and Mozilla. When comes to IE it's throwing a console error as follows</p>
  
  <pre><code>SCRIPT438: Object doesn't support property or method 'endsWith' 
  </code></pre>
  
  <p>How can I resolve it?</p>