-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
p1We will address this soon and will provide capacity from our team for it in the next few releases.We will address this soon and will provide capacity from our team for it in the next few releases.
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim
What specific section or headline is this issue about?
Try it box
What information was incorrect, unhelpful, or incomplete?
console.log(" a a ")
>"a a"
What did you expect to see?
>a a
Do you have any supporting links, references, or citations?
Same link
The trim() method of String values removes whitespace from both ends of this string and returns a new string, without modifying the original string.
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/javascript/reference/global_objects/string/trim - MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/javascript/reference/global_objects/string/trim/index.md
- Last commit: mdn/content@544b843
- Document last modified: 2025-07-10T09:07:55.000Z
OnkarRuikar
Metadata
Metadata
Assignees
Labels
p1We will address this soon and will provide capacity from our team for it in the next few releases.We will address this soon and will provide capacity from our team for it in the next few releases.