Totara supports a small set of ES6 and later features despite the fact that not all of our supported browsers provide there features natively. We achieve this by using a combination of core-js polyfills and those provided on https://developer.mozilla.org.
All ES6+ polyfils have been added to lib/javascript_polyfill/src/ and are included on every page when using IE11.