Code coverage report for string/repeat.js

Statements: 100% (6 / 6)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (5 / 5)     

All files » string/ » repeat.js
1 2 3 4 5 6 7 8 9 10 11 12 13 141         1 27 27     1      
define(['../lang/toString'], function(toString){
 
    /**
     * Repeat string n times
     */
     function repeat(str, n){
         str = toString(str);
         return (new Array(n + 1)).join(str);
     }
 
     return repeat;
 
});