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:
1.1 KB
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 | exports["default"] = void 0;
|
---|
5 | var _padCharsEnd = _interopRequireDefault(require("./padCharsEnd"));
|
---|
6 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
---|
7 | /**
|
---|
8 | * The function pads the current string with an empty string
|
---|
9 | * so that the resulting string reaches a given length.
|
---|
10 | * The padding is applied from the end of the current string.
|
---|
11 | *
|
---|
12 | * @func padEnd
|
---|
13 | * @memberOf RA
|
---|
14 | * @since {@link https://char0n.github.io/ramda-adjunct/2.22.0|v2.22.0}
|
---|
15 | * @category String
|
---|
16 | * @sig Number -> String -> String
|
---|
17 | * @param {number} targetLength The length of the resulting string once
|
---|
18 | * the current string has been padded
|
---|
19 | * @param {string} value String value to be padded
|
---|
20 | * @return {string} A new string of the specified length with the pad string
|
---|
21 | * applied at the end of the current string
|
---|
22 | * @see {@link RA.padCharsEnd|padCharsEnd}, {@link RA.padCharsStart|padCharsStart}, {@link RA.padStart|padStart}
|
---|
23 | * @example
|
---|
24 | *
|
---|
25 | * RA.padEnd(3, 'a'); // => 'a '
|
---|
26 | */
|
---|
27 | var padEnd = (0, _padCharsEnd["default"])(' ');
|
---|
28 | var _default = padEnd;
|
---|
29 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.