跳至主要內容

String.prototype.trimStart / String.prototype.trimEnd

小于 1 分钟featurees-proposalmissing-example

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

类型

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

入口点

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