Skip to content

Function: capitalize()

capitalize(value): string

Upper-case the first character of value, leaving the rest untouched. "working" -> "Working". Collapses the s.charAt(0).toUpperCase() + s.slice(1) idiom.

string

string