lib/python-format.js
function repeat(string, times) {
            var result = ""
            // Optimized repeat function concatenates concatenated
            // strings.
            while (times > 0) {
                if (times & 1) result += string
                times >>= 1
                string += string
            }
            return result
        }
function repeat(string, times) {
            var result = ""
            // Optimized repeat function concatenates concatenated
            // strings.
            while (times > 0) {
                if (times & 1) result += string
                times >>= 1
                string += string
            }
            return result
        }
function repeat ( string , times ) { var result = "" // Optimized repeat function concatenates concatenated // strings. while ( times > 0 ) { if ( times & 1 ) result += string times >>= 1 string += string } return result }
Internal function used for padding
Internal function used for padding