Snippets Collections
String.prototype.toJadenCase = function () { 
  return this.split(" ").map(function(word){
    return word.charAt(0).toUpperCase() + word.slice(1);
  }).join(" ");
}
star

Sat May 20 2023 15:17:56 GMT+0000 (Coordinated Universal Time) https://www.codewars.com/kata/5390bac347d09b7da40006f6/solutions/javascript

#javascript #convertir #.split() #.map() #.chatat() #.touppercase() #.slice() #.join()

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension