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