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-12-27 19:33:54 +01:00
|
|
|
var userAgent = require('./_user-agent');
|
2017-05-28 00:38:50 +02:00
|
|
|
|
2017-12-27 19:33:54 +01:00
|
|
|
// https://github.com/zloirock/core-js/issues/280
|
|
|
|
$export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', {
|
2017-08-14 05:01:11 +02:00
|
|
|
padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
|
2017-05-28 00:38:50 +02:00
|
|
|
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
|
|
|
|
}
|
2017-08-14 05:01:11 +02:00
|
|
|
});
|