Capitalize string

3/2/2020

A small helper function to capitalise the first word in a string.

export const capitalize = string => {
    return string.charAt(0).toUpperCase() + string.substring(1)
}