9 lines
286 B
JavaScript
9 lines
286 B
JavaScript
|
'use strict';
|
||
|
var $export = require('./$.export')
|
||
|
, $pad = require('./$.string-pad');
|
||
|
|
||
|
$export($export.P, 'String', {
|
||
|
padRight: function padRight(maxLength /*, fillString = ' ' */){
|
||
|
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
|
||
|
}
|
||
|
});
|