You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
541 B
JavaScript
15 lines
541 B
JavaScript
5 years ago
|
'use strict';
|
||
|
// https://github.com/tc39/proposal-string-pad-start-end
|
||
|
var $export = require('./_export');
|
||
|
var $pad = require('./_string-pad');
|
||
|
var userAgent = require('./_user-agent');
|
||
|
|
||
|
// https://github.com/zloirock/core-js/issues/280
|
||
|
var WEBKIT_BUG = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);
|
||
|
|
||
|
$export($export.P + $export.F * WEBKIT_BUG, 'String', {
|
||
|
padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
|
||
|
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
|
||
|
}
|
||
|
});
|