Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript ucwords

function ucwords (str) {
    return (str + '').replace(/^([a-z])|s+([a-z])/g, function ($1) {
        return $1.toUpperCase();
    });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #ucwords
ADD COMMENT
Topic
Name
3+3 =