es.string.pad-start.js 503 B

123456789101112
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var $padStart = require('../internals/string-pad').start;
  4. var WEBKIT_BUG = require('../internals/string-pad-webkit-bug');
  5. // `String.prototype.padStart` method
  6. // https://tc39.github.io/ecma262/#sec-string.prototype.padstart
  7. $({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
  8. padStart: function padStart(maxLength /* , fillString = ' ' */) {
  9. return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
  10. }
  11. });