Answers for "javascript ucwords"

0

javascript ucwords

function ucwords (str) {
    return (str + '').replace(/^([a-z])|\s+([a-z])/g, function ($1) {
        return $1.toUpperCase();
    });
}
Posted by: Guest on March-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language