dist/modules/string.js
function capitalize(val) {
    if (!is_1.isValue(val))
        return null;
    val = val.toLowerCase();
    return "" + val.charAt(0).toUpperCase() + val.slice(1);
}
function capitalize(val) {
    if (!is_1.isValue(val))
        return null;
    val = val.toLowerCase();
    return "" + val.charAt(0).toUpperCase() + val.slice(1);
}
function capitalize ( val ) { if ( ! is_1 . isValue ( val ) ) return null ; val = val . toLowerCase ( ) ; return "" + val . charAt ( 0 ) . toUpperCase ( ) + val . slice ( 1 ) ; }
Capitalize
Converts string to capitalize.

@param val the value to be transformed.
Capitalize Converts string to capitalize .