I have the below code it’s throwing error some in IE11 “Obect property or method not exist…etc”
After search found the following one in MSDN “String.prototype.EndsWith” polyfill. but I have no idea how to implement that with the below code. Can anyone help me how to implement the prototype with the below code to work in ie.
I should use ‘endsWith’ please dont provide alternatives like match string…:).
you should use endsWith with the polyfill - then when IE dies you can delete the polyfill rather than having to rewrite the code to use the correct method.
A polyfill provides backwards support for older browsers that don’t support a new command - the newer browsers simply run the native command while the polyfill provides an equivalent but slower functionality for old browsers. The alternative is to provide the old slower code to all browsers.
IE11 will never be brought up to date because Microsoft are no longer adding new features to it - it will just get security patches between now and when Microsoft abandon Internet Explorer completely. Their new replacement browser Microsoft Edge was introduced just over a year ago.