camel case function

 camelCaseFunction(data){

-            var arr = data.split(/[_]/);

-            var newStr = "";

-            for (var i = 0; i < arr.length; i++) {

-                newStr += arr[i].charAt(0).toUpperCase() + arr[i].slice(1)  +(',');

-            }

-            newStr = newStr.replace("-"," ")

-            return newStr;

         }

No comments:

Post a Comment

Hey Folks, It’s Worse Than We Thought — Claude’s Privacy Mess Just Got Bigger

  What started as a leak of shared Claude chats has turned into something much bigger — and much worse. The same thing is now happening with...