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

How to host application on server new way

 copy the htacess from public to root copy the server.php from public to root but rename to index.php htacess <IfModule mod_rewrite.c>...