es.string.trim-start.js 496 B

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