2017-05-28 00:38:50 +02:00
|
|
|
'use strict';
|
|
|
|
// https://github.com/tc39/proposal-string-pad-start-end
|
2017-08-14 05:01:11 +02:00
|
|
|
var $export = require('./_export');
|
|
|
|
var $pad = require('./_string-pad');
|
2017-05-28 00:38:50 +02:00
|
|
|
|
|
|
|
$export($export.P, 'String', {
|
2017-08-14 05:01:11 +02:00
|
|
|
padStart: function padStart(maxLength /* , fillString = ' ' */) {
|
2017-05-28 00:38:50 +02:00
|
|
|
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);
|
|
|
|
}
|
2017-08-14 05:01:11 +02:00
|
|
|
});
|