I\'m looking through the lodash docs and other Stack Overflow questions - while there are several native JavaScript ways of accomplishing this task, is there a way I can convert
const titleCase = str => str .split(' ') .map(str => { const word = str.toLowerCase() return word.charAt(0).toUpperCase() + word.slice(1) }) .join(' ')
You can also split out the map function to do separate words