es.string.trim-left.js 395 B

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