es.string.trim-start.js 484 B

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