lib/util-x.js
function stringRepeatRep(s, times) {
                var half,
                    val;

                if (times < 1) {
                    val = '';
                } else if (times % 2) {
                    val = stringRepeatRep(s, times - 1) + s;
                } else {
                    half = stringRepeatRep(s, times / 2);
                    val = half + half;
                }

                return val;
            }
function stringRepeatRep(s, times) {
                var half,
                    val;

                if (times < 1) {
                    val = '';
                } else if (times % 2) {
                    val = stringRepeatRep(s, times - 1) + s;
                } else {
                    half = stringRepeatRep(s, times / 2);
                    val = half + half;
                }

                return val;
            }
function stringRepeatRep ( s , times ) { var half , val ; if ( times < 1 ) { val = '' ; } else if ( times % 2 ) { val = stringRepeatRep ( s , times - 1 ) + s ; } else { half = stringRepeatRep ( s , times / 2 ) ; val = half + half ; } return val ; }
Repeat the current string several times, return the new string. Used by String.repeat
@private
@function stringRepeatRep
@param {string} s
@param {number} times
@returns {string}
Repeat the current string several times return the new string . Used by String . repeat