Code coverage report for string/repeat.js

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

All files » string/ » repeat.js
1 2 3 4 5 6 7 8 9 10 11 12 13 141           1 21     1      
define(function(){
 
    /**
     * Repeat string n times
     * @version 0.1.0 (2011/12/07)
     */
     function repeat(str, n){
        return (new Array(n + 1)).join(str);
     }
 
     return repeat;
 
});