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