Closed neodigm closed 7 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() ) || ""
This may be functioning as designed, its purpose is to cap first, and it does that.
Closing.
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() ) || ""