Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

function titleCase 2

function titleCase(str) {
  return str
    .toLowerCase()
    .split(" ")
    .map(val => val.replace(val.charAt(0), val.charAt(0).toUpperCase()))
    .join(" ");
}

titleCase("I'm a little tea pot");
Comment

PREVIOUS NEXT
Code Example
Javascript :: withrouter in react-router v6 
Javascript :: react native webview get query params 
Javascript :: create object in jquery dynamically 
Javascript :: https://javascript.plainenglish.io/javascript-algorithms-valid-parentheses-leetcode-71c5b2f61077 
Javascript :: NavBar with divs 
Javascript :: mul function call to 3 functions 
Javascript :: How to remove added values with javascript 
Javascript :: How to Loop Through an Array with a forEach Loop in JavaScript 
Javascript :: expact 
Javascript :: verify if user input is equal to javascript 
Javascript :: using nodeenv 
Javascript :: javascript nodejs array to listnode 
Javascript :: Backbone View Notes 
Javascript :: Solution-4-B--solution options for reverse bits algorithm js 
Javascript :: event 
Javascript :: password generator and password strength using javascript 
Javascript :: javascript declare multiple variables on one line 
Javascript :: for loop javascript array of objects 
Javascript :: js return 
Javascript :: npm google map react 
Javascript :: moment js remove seconds 
Javascript :: chatbot js 
Javascript :: react native file pdf to base64 
Javascript :: operadores de asignacion javascript 
Javascript :: JavaScript built-in methods 
Javascript :: javascript Assign Default Values 
Javascript :: javaScript has() Method 
Javascript :: JavaScript / jQuery DOM Selectors 
Javascript :: nodejs: express, morgan, mongoose package 
Javascript :: Elementor Hide Sticky Header on Scroll Down - Show on Scroll Up 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =