function classify(string) {
    string = string.replace(/[\W_](\w)/g, match => ` ${match[1].toUpperCase()}`).replace(/\s/g, '');
    return string.charAt(0).toUpperCase() + string.slice(1);
}
function classify(string) {
    string = string.replace(/[\W_](\w)/g, match => ` ${match[1].toUpperCase()}`).replace(/\s/g, '');
    return string.charAt(0).toUpperCase() + string.slice(1);
}
function classify ( string ) { string = string . replace ( / [\W_](\w) / g , match => ` ${ match [ 1 ] . toUpperCase ( ) } ` ) . replace ( / \s / g , '' ) ; return string . charAt ( 0 ) . toUpperCase ( ) + string . slice ( 1 ) ; }
Convenient function to convert string into valid java class name
Note: _.classify uses _.titleize which lowercase the string,
so if the user chooses a proper ClassName it will not rename properly

@param string string to 'class'-ify
@returns {string} 'class'-ified string
Convenient function to convert string into valid java class name Note : _ . classify uses _ . titleize which lowercase the string so if the user chooses a proper ClassName it will not rename properly
Classify a string