funcifyr.js
function(str, times) {
        if (String.prototype.repeat) return str.repeat(times);
        return Array.apply(null, new Array(times)).map(function() {
          return str;
        }).join('');
      }
function(str, times) {
        if (String.prototype.repeat) return str.repeat(times);
        return Array.apply(null, new Array(times)).map(function() {
          return str;
        }).join('');
      }
function ( str , times ) { if ( String . prototype . repeat ) return str . repeat ( times ) ; return Array . apply ( null , new Array ( times ) ) . map ( function ( ) { return str ; } ) . join ( '' ) ; }
Repeats a string a number of times.

repeat :: (a, n) → r

@param (str, times) - A string to repeat, and a number for the amount of repetitions
@returns A repeated string
Repeats a string a number of times .