UNPKG

399 BJavaScriptView Raw
1'use strict';
2var $ = require('../internals/export');
3var trimEnd = require('../internals/string-trim-end');
4
5// `String.prototype.trimRight` method
6// https://tc39.es/ecma262/#sec-string.prototype.trimend
7// eslint-disable-next-line es/no-string-prototype-trimleft-trimright -- safe
8$({ target: 'String', proto: true, name: 'trimEnd', forced: ''.trimRight !== trimEnd }, {
9 trimRight: trimEnd
10});