draftjs-utils
draftjs-utils copied to clipboard
startsWith brakes IE
I have to ship my app to IE users. https://caniuse.com/#search=startsWith
I know that I can use a polyfill but, it's not obvious, and requires digging where startsWith was used.
Here is a link to a polyfill for those who need a quick fix https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/es.string.starts-with.js
// import 'core-js/stable/string/starts-with'; if your using es6 + webpack