code: function repeat(string, n) {
        var result = '';
        n = +n;
  
        if (n < 1 || string == null || !nativeIsFinite(n)) {
          return result;
        }
        string = String(string);
        do {
          if (n % 2) {
            result += string;
          }
          n = floor(n / 2);
          string += string;
        } while (n);
        return result;
      }
docs: Repeats the given string `n` times.
  
  @static
  @memberOf _
  @category Strings
  @param {string} [string=''] The string to repeat.
  @param {number} [n=0] The number of times to repeat the string.
  @returns {string} Returns the repeated string.
  @example
  
  _.repeat('*', 3);
  // => '***'
  
  _.repeat('abc', 2);
  // => 'abcabc'
  
  _.repeat('abc', 0);
  // => ''