Capitalize string

02/03/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)
}