main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
482 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict';
|
---|
| 2 | var $ = require('../internals/export');
|
---|
| 3 | var $padEnd = require('../internals/string-pad').end;
|
---|
| 4 | var WEBKIT_BUG = require('../internals/string-pad-webkit-bug');
|
---|
| 5 |
|
---|
| 6 | // `String.prototype.padEnd` method
|
---|
| 7 | // https://tc39.es/ecma262/#sec-string.prototype.padend
|
---|
| 8 | $({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
|
---|
| 9 | padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
|
---|
| 10 | return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
|
---|
| 11 | }
|
---|
| 12 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.