dist/modules/string.js
function padRight(val, len, offset, char) {
    /* istanbul ignore if */
    if (!is_1.isValue(val) || !is_1.isString(val))
        return null;
    // If offset is a string
    // count its length.
    if (is_1.isString(offset))
        offset = offset.length;
    char = char || ' ';
    while (len--) {
        val += char;
    }
    if (offset)
        val += padRight('', offset, null, char);
    return val;
}
function padRight(val, len, offset, char) {
    /* istanbul ignore if */
    if (!is_1.isValue(val) || !is_1.isString(val))
        return null;
    // If offset is a string
    // count its length.
    if (is_1.isString(offset))
        offset = offset.length;
    char = char || ' ';
    while (len--) {
        val += char;
    }
    if (offset)
        val += padRight('', offset, null, char);
    return val;
}
function padRight ( val , len , offset , char ) { /* istanbul ignore if */ if ( ! is_1 . isValue ( val ) || ! is_1 . isString ( val ) ) return null ; // If offset is a string // count its length. if ( is_1 . isString ( offset ) ) offset = offset . length ; char = char || ' ' ; while ( len -- ) { val += char ; } if ( offset ) val += padRight ( '' , offset , null , char ) ; return val ; }
Pad Right
Pads a string to the right.

@param val the string to be padded.
@param len the length to pad.
@param offset an offset value to add.
@param char the character to pad with.
Pad Right Pads a string to the right .