src/hft/scripts/misc/strings.js
function(str, len, padChar) {
    str = stringIt(str);
    if (str.length >= len) {
      return str;
    }
    var padStr = getPadding(padChar, len);
    return str + padStr.substr(str.length - len);
  }
function(str, len, padChar) {
    str = stringIt(str);
    if (str.length >= len) {
      return str;
    }
    var padStr = getPadding(padChar, len);
    return str + padStr.substr(str.length - len);
  }
function ( str , len , padChar ) { str = stringIt ( str ) ; if ( str . length >= len ) { return str ; } var padStr = getPadding ( padChar , len ) ; return str + padStr . substr ( str . length - len ) ; }
Pad string on right
@param {string} str string to pad
@param {number} len number of characters to pad to
@param {string} padChar character to pad with
@returns {string} padded string.
@memberOf module:Strings
Pad string on right