Skip to main content

String.prototype.trimStart / String.prototype.trimEnd

Less than 1 minutefeaturees-proposalmissing-example

String.prototype.trimStart / String.prototype.trimEndopen in new window

Types

interface String {
  trimLeft(): string;
  trimRight(): string;
  trimStart(): string;
  trimEnd(): string;
}

Entry points

core-js/proposals/string-left-right-trim