SyntaxFix
Write A Post
Hire A Developer
Questions
ECMAScript 6 version:
title .split(/ /g).map(word => `${word.substring(0,1).toUpperCase()}${word.substring(1)}`) .join(" ");