lib/jyt.utils.js
function dashToCamelCase(dashCase) {
    if (!dashCase) { return dashCase; }

    var parts = dashCase.split('-');
    var camelCase = parts[0];
    var part;

    for (var i = 1; i < parts.length; i++) {
        part = parts[i];
        camelCase += part.substring(0, 1).toUpperCase() + part.substring(1);
    }

    return camelCase;
}
function dashToCamelCase(dashCase) {
    if (!dashCase) { return dashCase; }

    var parts = dashCase.split('-');
    var camelCase = parts[0];
    var part;

    for (var i = 1; i < parts.length; i++) {
        part = parts[i];
        camelCase += part.substring(0, 1).toUpperCase() + part.substring(1);
    }

    return camelCase;
}
function dashToCamelCase ( dashCase ) { if ( ! dashCase ) { return dashCase ; } var parts = dashCase . split ( '-' ) ; var camelCase = parts [ 0 ] ; var part ; for ( var i = 1 ; i < parts . length ; i ++ ) { part = parts [ i ] ; camelCase += part . substring ( 0 , 1 ) . toUpperCase ( ) + part . substring ( 1 ) ; } return camelCase ; }
Convert a string with dashes to camel case
@param dashCase
Convert a string with dashes to camel case