Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to convert string to reverse title case in javascript

const reverseTitleCase = (string) => {
  const newText = string
    .toLowerCase()
    .split(" ")
    .map(function(item) {
      return item.slice(0, -1) + item.slice(-1).toUpperCase();
    })
    .join(" ");
  
  return newText;
};
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #convert #string #reverse #title #case #javascript
ADD COMMENT
Topic
Name
5+3 =