-
Notifications
You must be signed in to change notification settings - Fork 325
trimLeft and trimRight (discouraged) #4324
Copy link
Copy link
Closed
Labels
feature definitionCreating or defining new features or groups of features.Creating or defining new features or groups of features.feature entry requestA request for a new web platform feature entryA request for a new web platform feature entry
Description
Activity
Metadata
Metadata
Assignees
Labels
feature definitionCreating or defining new features or groups of features.Creating or defining new features or groups of features.feature entry requestA request for a new web platform feature entryA request for a new web platform feature entry
Specification
Description
They are aliases to
trimStart()andtrimEnd(), respectively.For discouragement, this in Annex B. They're legacy aliases and shouldn't be used.
Documentation
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimEnd#browser_compatibility
Discovered in the course of evaluating #4300.
Browser support
This data is under
javascript.builtins.String.trim{Start,End}(e.g., MDN table). The first step here will be to break that data up (separately spec'd features should have separate keys in BCD, notalternative_namevalues).