Code coverage report for string/pascalCase.js

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

All files » string/ » pascalCase.js
1 2 3 4 5 6 7 8 9 10 11 121       1 7 7     1    
define(['../lang/toString', './camelCase', './upperCase'], function(toString, camelCase, upperCase){
    /**
     * camelCase + UPPERCASE first char
     */
    function pascalCase(str){
        str = toString(str);
        return camelCase(str).replace(/^[a-z]/, upperCase);
    }
 
    return pascalCase;
});