web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
661 B

  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var $trimEnd = require('../internals/string-trim').end;
  4. var forcedStringTrimMethod = require('../internals/string-trim-forced');
  5. var FORCED = forcedStringTrimMethod('trimEnd');
  6. var trimEnd = FORCED ? function trimEnd() {
  7. return $trimEnd(this);
  8. // eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe
  9. } : ''.trimEnd;
  10. // `String.prototype.{ trimEnd, trimRight }` methods
  11. // https://tc39.es/ecma262/#sec-string.prototype.trimend
  12. // https://tc39.es/ecma262/#String.prototype.trimright
  13. $({ target: 'String', proto: true, forced: FORCED }, {
  14. trimEnd: trimEnd,
  15. trimRight: trimEnd
  16. });