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

Add String.prototype.trimStart, trimLeft, trimEnd, trimRight #475

Closed
jszczypk opened this issue Feb 19, 2020 · 3 comments
Closed

Add String.prototype.trimStart, trimLeft, trimEnd, trimRight #475

jszczypk opened this issue Feb 19, 2020 · 3 comments

Comments

@jszczypk
Copy link

Feature request - add polyfill for String.prototype.trimStart, trimLeft, trimEnd, trimRight

trimStart and trimEnd are not supported in IE, Edge and FF<61, Chrome<66
trimLeft and trimRight are not supported in IE
https://caniuse.com/#search=trimStart
https://caniuse.com/#search=trimEnd

Polyfill for trimStart
https://github.com/FabioVergani/js-Polyfill_String-trimStart

@daytonlowell
Copy link

trimStart and trimEnd are non-standard. I would avoid those.

@jszczypk
Copy link
Author

trimStart and trimEnd are in EcmaScript 2019
https://www.ecma-international.org/ecma-262/10.0/index.html#sec-string.prototype.trimend

trimLeft and trimRight are non-standard but popular.

@JakeChampion JakeChampion transferred this issue from polyfillpolyfill/polyfill-service Feb 20, 2020
@JakeChampion
Copy link
Owner

Added in #95

Origami ✨ automation moved this from incoming to complete Feb 21, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2020
@robertboulton robertboulton removed this from Done in Origami ✨ Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants