main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 2 weeks ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
500 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var $trimEnd = require('../internals/string-trim').end;
|
---|
3 | var forcedStringTrimMethod = require('../internals/string-trim-forced');
|
---|
4 |
|
---|
5 | // `String.prototype.{ trimEnd, trimRight }` method
|
---|
6 | // https://tc39.es/ecma262/#sec-string.prototype.trimend
|
---|
7 | // https://tc39.es/ecma262/#String.prototype.trimright
|
---|
8 | module.exports = forcedStringTrimMethod('trimEnd') ? function trimEnd() {
|
---|
9 | return $trimEnd(this);
|
---|
10 | // eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe
|
---|
11 | } : ''.trimEnd;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.