arcanus55 / neodigm55

An eclectic low-code vanilla JavaScript UX micro-library for those that defiantly think for themselves.
https://thescottkrause.com/emerging_tech/neodigm55_ux_library/
BSD 3-Clause "New" or "Revised" License
17 stars 2 forks source link

neodigmUtils capFirst #109

Closed neodigm closed 7 months ago

neodigm commented 8 months ago

Minor bug, its capping the first char but leaving the remaining upper case. See implementation fix below.

const capFirst = ( s ) => (s && s[0].toUpperCase() + s.slice(1).toLocaleLowerCase() ) || ""

neodigm commented 8 months ago

This may be functioning as designed, its purpose is to cap first, and it does that.

neodigm commented 7 months ago

Closing.