ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
28 lines (27 loc) • 1.11 kB
JavaScript
exports.__esModule = true;
exports["default"] = void 0;
var _padCharsEnd = _interopRequireDefault(require("./padCharsEnd.js"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
/**
* The function pads the current string with an empty string
* so that the resulting string reaches a given length.
* The padding is applied from the end of the current string.
*
* @func padEnd
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.22.0|v2.22.0}
* @category String
* @sig Number -> String -> String
* @param {number} targetLength The length of the resulting string once
* the current string has been padded
* @param {string} value String value to be padded
* @return {string} A new string of the specified length with the pad string
* applied at the end of the current string
* @see {@link RA.padCharsEnd|padCharsEnd}, {@link RA.padCharsStart|padCharsStart}, {@link RA.padStart|padStart}
* @example
*
* RA.padEnd(3, 'a'); // => 'a '
*/
var padEnd = (0, _padCharsEnd["default"])(' ');
var _default = exports["default"] = padEnd;
;