capitalize
Converts the first character of string to upper case and the remaining to low case
basic usage
argument
str: string
: string to capitalize
return
string
: the capitalized string
ts
import { capitalize } from 'func-dash'
const str = 'hello world'
const result = capitalize(str)
console.log(result) // Hello world