79721957

Date: 2025-08-01 01:02:56
Score: 1
Natty:
Report link

Here's a cool one-liner using regex

const titleCase = str => str.toLowerCase().replace(/\b\w/g, c => c.toUpperCase());

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: vmHernandes