Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kirk-Wang opened this issue Jan 17, 2018 · 1 comment
Open

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

Kirk-Wang opened this issue Jan 17, 2018 · 1 comment

Comments

@Kirk-Wang
Copy link

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

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

@Bloomca
Copy link
Owner

Bloomca commented Jan 18, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants