es.string.trim-end.js 467 B

1234567891011
  1. // TODO: Remove this line from `core-js@4`
  2. require('../modules/es.string.trim-right');
  3. var $ = require('../internals/export');
  4. var trimEnd = require('../internals/string-trim-end');
  5. // `String.prototype.trimEnd` method
  6. // https://tc39.es/ecma262/#sec-string.prototype.trimend
  7. // eslint-disable-next-line es-x/no-string-prototype-trimstart-trimend -- safe
  8. $({ target: 'String', proto: true, name: 'trimEnd', forced: ''.trimEnd !== trimEnd }, {
  9. trimEnd: trimEnd
  10. });