216 B
216 B
Capitalize first letter
Use sice(0,1) and toUpperCase() to capitalize first letter, slice(1) to get the rest of the string.
var capitalize = str => str.slice(0, 1).toUpperCase() + str.slice(1);