wallet-core/node_modules/core-js/modules/es7.string.pad-start.js

10 lines
340 B
JavaScript
Raw Normal View History

2016-10-10 03:43:44 +02:00
'use strict';
// https://github.com/tc39/proposal-string-pad-start-end
var $export = require('./_export')
, $pad = require('./_string-pad');
$export($export.P, 'String', {
padStart: function padStart(maxLength /*, fillString = ' ' */){
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);
}
});