code: 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
          }
docs: Internal function used for padding