-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update
.name
properties of `String#{trimStart, trimEnd , trimLeft, …
…trimRight}` by proposal, mark mongolian vowel separator as non-whitespace in one more place
- Loading branch information
Showing
5 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
'use strict'; | ||
// `String.prototype.{ trimLeft, trimStart }` methods | ||
// https://github.com/tc39/ecmascript-string-left-right-trim | ||
require('../internals/string-trim')('trimLeft', function (internalTrim) { | ||
return function trimLeft() { | ||
require('../internals/string-trim')('trimStart', function (internalTrim) { | ||
return function trimStart() { | ||
return internalTrim(this, 1); | ||
}; | ||
}, 'trimStart'); | ||
}, 'trimLeft'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
'use strict'; | ||
// `String.prototype.{ trimRight, trimEnd }` methods | ||
// https://github.com/tc39/ecmascript-string-left-right-trim | ||
require('../internals/string-trim')('trimRight', function (internalTrim) { | ||
return function trimRight() { | ||
require('../internals/string-trim')('trimEnd', function (internalTrim) { | ||
return function trimEnd() { | ||
return internalTrim(this, 2); | ||
}; | ||
}, 'trimEnd'); | ||
}, 'trimRight'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters