The following code can be run without a problem in Chrome, but throws the following error in Internet Explorer 11.
Object doesn\'t support property or
As others have said startsWith and endsWith are part of ES6 and not available in IE11. Our company always uses lodash library as a polyfill solution for IE11. https://lodash.com/docs/4.17.4
_.startsWith([string=''], [target], [position=0])