IE doesn’t support some of the String methods which is available with other browsers. String.endsWith is one of them. One of the simple solution is to define its prototype as below.
Tag: Plugins
Fix for Javascript String.includes not supported by IE
IE doesn’t support some of the String methods which is available with other browsers. String.includes is one of them. One of the simple solution is to define its prototype as below.