Skip to content

trimLeft and trimRight (discouraged) #4324

Description

@ddbeck

Specification

Description

They are aliases to trimStart() and trimEnd(), 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, not alternative_name values).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature definitionCreating or defining new features or groups of features.feature entry requestA request for a new web platform feature entry

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions