main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
496 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 | var $ = require('../internals/export');
|
---|
| 3 | var $padStart = require('../internals/string-pad').start;
|
---|
| 4 | var WEBKIT_BUG = require('../internals/string-pad-webkit-bug');
|
---|
| 5 |
|
---|
| 6 | // `String.prototype.padStart` method
|
---|
| 7 | // https://tc39.es/ecma262/#sec-string.prototype.padstart
|
---|
| 8 | $({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
|
---|
| 9 | padStart: function padStart(maxLength /* , fillString = ' ' */) {
|
---|
| 10 | return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
|
---|
| 11 | }
|
---|
| 12 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.