redux-tiles icon indicating copy to clipboard operation
redux-tiles copied to clipboard

str[0]-->str.charAt(0), for ie7

Open Kirk-Wang opened this issue 7 years ago • 1 comments

function capitalize(str: string, i: number): string { if (i === 0) { return str; }

return str[0].toUpperCase() + str.slice(1); }

Kirk-Wang avatar Jan 17 '18 03:01 Kirk-Wang

Hey, thanks for the suggestion!

However, do we really need it? For example, react dropped support for IE8.

I am not sure about redux, but found this comment from @gaearon

Bloomca avatar Jan 18 '18 10:01 Bloomca