es.string.trim-right.js 387 B

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