10 lines
337 B
JavaScript
10 lines
337 B
JavaScript
|
'use strict';
|
||
|
// https://github.com/tc39/proposal-string-pad-start-end
|
||
|
var $export = require('./_export')
|
||
|
, $pad = require('./_string-pad');
|
||
|
|
||
|
$export($export.P, 'String', {
|
||
|
padEnd: function padEnd(maxLength /*, fillString = ' ' */){
|
||
|
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
|
||
|
}
|
||
|
});
|