draftjs-utils icon indicating copy to clipboard operation
draftjs-utils copied to clipboard

startsWith brakes IE

Open simon-rad opened this issue 5 years ago • 0 comments

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

simon-rad avatar Feb 05 '20 12:02 simon-rad