src/privates/_getPadding.js
function _getPadding (source, char, len) {
    if (!isNil(source) && type(source) !== "String") {
        source = String(source);
    }

    return _repeat(String(char)[0] || "", Math.ceil(len - source.length));
}
function _getPadding (source, char, len) {
    if (!isNil(source) && type(source) !== "String") {
        source = String(source);
    }

    return _repeat(String(char)[0] || "", Math.ceil(len - source.length));
}
function _getPadding ( source , char , len ) { if ( ! isNil ( source ) && type ( source ) !== "String" ) { source = String ( source ) ; } return _repeat ( String ( char ) [ 0 ] || "" , Math . ceil ( len - source . length ) ) ; }
Builds the prefix or suffix to be used when padding a string.
@private
@param {String} source
@param {String} char
@param {Number} len
@returns {String}
Builds the prefix or suffix to be used when padding a string .