79205096

Date: 2024-11-19 21:28:32
Score: 0.5
Natty:
Report link

Using some cool binary operands, you could also do something like:

const capitalizeFirstLetter = (str) =>
  str ? String.fromCharCode(str.charCodeAt(0) & ~32) + str.slice(1) : '';

But this seems excessive.

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